home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / lisp / calendar / appt.elc.z / appt.elc
Emacs Compiled Lisp  |  1998-05-21  |  13.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v20 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 32 |on Mon M|ar 9 12|
|00000040| 3a 34 36 3a 31 30 20 31 | 39 39 38 0a 3b 3b 3b 20 |:46:10 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 63 61 6c 65 |s-20.3/l|isp/cale|
|000000a0| 6e 64 61 72 2f 61 70 70 | 74 2e 65 6c 0a 3b 3b 3b |ndar/app|t.el.;;;|
|000000b0| 20 65 6d 61 63 73 20 76 | 65 72 73 69 6f 6e 20 32 | emacs v|ersion 2|
|000000c0| 30 2e 34 20 22 45 6d 65 | 72 61 6c 64 22 20 58 45 |0.4 "Eme|rald" XE|
|000000d0| 6d 61 63 73 20 20 4c 75 | 63 69 64 2e 0a 3b 3b 3b |macs Lu|cid..;;;|
|000000e0| 20 62 79 74 65 63 6f 6d | 70 20 76 65 72 73 69 6f | bytecom|p versio|
|000000f0| 6e 20 32 2e 32 35 20 58 | 45 6d 61 63 73 3b 20 32 |n 2.25 X|Emacs; 2|
|00000100| 32 2d 4d 61 72 2d 39 36 | 2e 0a 3b 3b 3b 20 6f 70 |2-Mar-96|..;;; op|
|00000110| 74 69 6d 69 7a 61 74 69 | 6f 6e 20 69 73 20 6f 6e |timizati|on is on|
|00000120| 2e 0a 3b 3b 3b 20 74 68 | 69 73 20 66 69 6c 65 20 |..;;; th|is file |
|00000130| 75 73 65 73 20 6f 70 63 | 6f 64 65 73 20 77 68 69 |uses opc|odes whi|
|00000140| 63 68 20 64 6f 20 6e 6f | 74 20 65 78 69 73 74 20 |ch do no|t exist |
|00000150| 69 6e 20 45 6d 61 63 73 | 20 31 39 2e 0a 0a 28 69 |in Emacs| 19...(i|
|00000160| 66 20 28 61 6e 64 20 28 | 62 6f 75 6e 64 70 20 27 |f (and (|boundp '|
|00000170| 65 6d 61 63 73 2d 76 65 | 72 73 69 6f 6e 29 0a 09 |emacs-ve|rsion)..|
|00000180| 20 28 6f 72 20 28 61 6e | 64 20 28 62 6f 75 6e 64 | (or (an|d (bound|
|00000190| 70 20 27 65 70 6f 63 68 | 3a 3a 76 65 72 73 69 6f |p 'epoch|::versio|
|000001a0| 6e 29 20 65 70 6f 63 68 | 3a 3a 76 65 72 73 69 6f |n) epoch|::versio|
|000001b0| 6e 29 0a 09 20 20 20 20 | 20 28 73 74 72 69 6e 67 |n).. | (string|
|000001c0| 2d 6c 65 73 73 70 20 65 | 6d 61 63 73 2d 76 65 72 |-lessp e|macs-ver|
|000001d0| 73 69 6f 6e 20 22 32 30 | 22 29 29 29 0a 20 20 20 |sion "20|"))). |
|000001e0| 20 28 65 72 72 6f 72 20 | 22 60 61 70 70 74 2e 65 | (error |"`appt.e|
|000001f0| 6c 27 20 77 61 73 20 63 | 6f 6d 70 69 6c 65 64 20 |l' was c|ompiled |
|00000200| 66 6f 72 20 45 6d 61 63 | 73 20 32 30 22 29 29 0a |for Emac|s 20")).|
|00000210| 0a 28 6f 72 20 28 62 6f | 75 6e 64 70 20 27 63 75 |.(or (bo|undp 'cu|
|00000220| 72 72 65 6e 74 2d 6c 6f | 61 64 2d 6c 69 73 74 29 |rrent-lo|ad-list)|
|00000230| 20 28 73 65 74 71 20 63 | 75 72 72 65 6e 74 2d 6c | (setq c|urrent-l|
|00000240| 6f 61 64 2d 6c 69 73 74 | 20 6e 69 6c 29 29 0a 0a |oad-list| nil))..|
|00000250| 0a 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 c1 21 |.(byte-c|ode "..!|
|00000260| 88 c0 c2 21 87 22 20 5b | 72 65 71 75 69 72 65 20 |...!." [|require |
|00000270| 63 61 6c 65 6e 64 61 72 | 20 64 69 61 72 79 2d 6c |calendar| diary-l|
|00000280| 69 62 5d 20 32 29 0a 28 | 63 75 73 74 6f 6d 2d 64 |ib] 2).(|custom-d|
|00000290| 65 63 6c 61 72 65 2d 76 | 61 72 69 61 62 6c 65 20 |eclare-v|ariable |
|000002a0| 27 61 70 70 74 2d 69 73 | 73 75 65 2d 6d 65 73 73 |'appt-is|sue-mess|
|000002b0| 61 67 65 20 27 74 20 22 | 2a 49 66 20 54 2c 20 74 |age 't "|*If T, t|
|000002c0| 68 65 20 64 69 61 72 79 | 20 62 75 66 66 65 72 20 |he diary| buffer |
|000002d0| 69 73 20 63 68 65 63 6b | 65 64 20 66 6f 72 20 61 |is check|ed for a|
|000002e0| 70 70 6f 69 6e 74 6d 65 | 6e 74 73 2e 20 20 46 6f |ppointme|nts. Fo|
|000002f0| 72 20 61 6e 5c 6e 20 61 | 70 70 6f 69 6e 74 6d 65 |r an\n a|ppointme|
|00000300| 6e 74 20 77 61 72 6e 69 | 6e 67 20 74 6f 20 62 65 |nt warni|ng to be|
|00000310| 20 6d 61 64 65 2c 20 74 | 68 65 20 74 69 6d 65 20 | made, t|he time |
|00000320| 6d 75 73 74 20 62 65 20 | 74 68 65 20 66 69 72 73 |must be |the firs|
|00000330| 74 20 74 68 69 6e 67 20 | 6f 6e 5c 6e 20 74 68 65 |t thing |on\n the|
|00000340| 20 6c 69 6e 65 2e 22 20 | 3a 74 79 70 65 20 27 62 | line." |:type 'b|
|00000350| 6f 6f 6c 65 61 6e 20 3a | 67 72 6f 75 70 20 27 61 |oolean :|group 'a|
|00000360| 70 70 74 29 0a 28 63 75 | 73 74 6f 6d 2d 64 65 63 |ppt).(cu|stom-dec|
|00000370| 6c 61 72 65 2d 76 61 72 | 69 61 62 6c 65 20 27 61 |lare-var|iable 'a|
|00000380| 70 70 74 2d 6d 73 67 2d | 63 6f 75 6e 74 64 6f 77 |ppt-msg-|countdow|
|00000390| 6e 2d 6c 69 73 74 20 27 | 27 28 32 30 20 31 35 20 |n-list '|'(20 15 |
|000003a0| 31 30 20 35 20 33 20 31 | 29 20 22 2a 41 20 6c 69 |10 5 3 1|) "*A li|
|000003b0| 73 74 20 6f 66 20 74 68 | 65 20 69 6e 74 65 72 76 |st of th|e interv|
|000003c0| 61 6c 73 20 69 6e 20 6d | 69 6e 75 74 65 73 20 62 |als in m|inutes b|
|000003d0| 65 66 6f 72 65 20 74 68 | 65 20 61 70 70 6f 69 6e |efore th|e appoin|
|000003e0| 74 6d 65 6e 74 20 77 68 | 65 6e 5c 6e 20 74 68 65 |tment wh|en\n the|
|000003f0| 20 77 61 72 6e 69 6e 67 | 73 20 77 69 6c 6c 20 62 | warning|s will b|
|00000400| 65 20 67 69 76 65 6e 2e | 20 20 54 68 61 74 20 69 |e given.| That i|
|00000410| 73 2c 20 69 66 20 74 68 | 69 73 20 77 65 72 65 20 |s, if th|is were |
|00000420| 74 68 65 20 6c 69 73 74 | 20 27 28 35 20 33 20 31 |the list| '(5 3 1|
|00000430| 29 2c 5c 6e 20 74 68 65 | 6e 20 61 20 6e 6f 74 69 |),\n the|n a noti|
|00000440| 66 69 63 61 74 69 6f 6e | 20 77 6f 75 6c 64 20 62 |fication| would b|
|00000450| 65 20 67 69 76 65 6e 20 | 66 69 76 65 20 6d 69 6e |e given |five min|
|00000460| 75 74 65 73 2c 20 74 68 | 72 65 65 20 6d 69 6e 75 |utes, th|ree minu|
|00000470| 74 65 73 2c 20 61 6e 64 | 5c 6e 20 6f 6e 65 20 6d |tes, and|\n one m|
|00000480| 69 6e 75 74 65 20 62 65 | 66 6f 72 65 20 74 68 65 |inute be|fore the|
|00000490| 20 61 70 70 6f 69 6e 74 | 6d 65 6e 74 2e 22 20 3a | appoint|ment." :|
|000004a0| 74 79 70 65 20 27 28 72 | 65 70 65 61 74 20 69 6e |type '(r|epeat in|
|000004b0| 74 65 67 65 72 29 20 3a | 67 72 6f 75 70 20 27 61 |teger) :|group 'a|
|000004c0| 70 70 74 29 0a 28 63 75 | 73 74 6f 6d 2d 64 65 63 |ppt).(cu|stom-dec|
|000004d0| 6c 61 72 65 2d 76 61 72 | 69 61 62 6c 65 20 27 61 |lare-var|iable 'a|
|000004e0| 70 70 74 2d 63 68 65 63 | 6b 2d 74 69 6d 65 2d 73 |ppt-chec|k-time-s|
|000004f0| 79 6e 74 61 78 20 27 6e | 69 6c 20 22 2a 57 68 65 |yntax 'n|il "*Whe|
|00000500| 74 68 65 72 20 61 6c 6c | 20 64 69 61 72 79 20 65 |ther all| diary e|
|00000510| 6e 74 72 69 65 73 20 61 | 72 65 20 69 6e 74 65 6e |ntries a|re inten|
|00000520| 64 65 64 20 74 6f 20 62 | 65 67 69 6e 67 20 77 69 |ded to b|eging wi|
|00000530| 74 68 20 74 69 6d 65 20 | 73 70 65 63 69 66 69 63 |th time |specific|
|00000540| 61 74 69 6f 6e 73 2e 5c | 6e 41 70 70 74 20 77 69 |ations.\|nAppt wi|
|00000550| 6c 6c 20 62 65 65 70 20 | 61 6e 64 20 69 73 73 75 |ll beep |and issu|
|00000560| 65 20 61 20 77 61 72 6e | 69 6e 67 20 6d 65 73 73 |e a warn|ing mess|
|00000570| 61 67 65 20 77 68 65 6e | 20 65 6e 63 6f 75 6e 74 |age when| encount|
|00000580| 65 72 69 6e 67 20 75 6e | 70 61 72 73 61 62 6c 65 |ering un|parsable|
|00000590| 20 5c 6e 6c 69 6e 65 73 | 2e 22 20 3a 74 79 70 65 | \nlines|." :type|
|000005a0| 20 27 62 6f 6f 6c 65 61 | 6e 20 3a 67 72 6f 75 70 | 'boolea|n :group|
|000005b0| 20 27 61 70 70 74 29 0a | 28 63 75 73 74 6f 6d 2d | 'appt).|(custom-|
|000005c0| 64 65 63 6c 61 72 65 2d | 76 61 72 69 61 62 6c 65 |declare-|variable|
|000005d0| 20 27 61 70 70 74 2d 61 | 75 64 69 62 6c 65 20 27 | 'appt-a|udible '|
|000005e0| 74 20 22 2a 43 6f 6e 74 | 72 6f 6c 73 20 77 68 65 |t "*Cont|rols whe|
|000005f0| 74 68 65 72 20 61 70 70 | 6f 69 6e 74 6d 65 6e 74 |ther app|ointment|
|00000600| 20 61 6e 6e 6f 75 6e 63 | 65 6d 65 6e 74 73 20 73 | announc|ements s|
|00000610| 68 6f 75 6c 64 20 62 65 | 65 70 2e 5c 6e 41 70 70 |hould be|ep.\nApp|
|00000620| 74 20 75 73 65 73 20 74 | 77 6f 20 73 6f 75 6e 64 |t uses t|wo sound|
|00000630| 2d 74 79 70 65 73 20 66 | 6f 72 20 62 65 65 70 73 |-types f|or beeps|
|00000640| 3a 20 60 61 70 70 74 27 | 20 61 6e 64 20 60 61 70 |: `appt'| and `ap|
|00000650| 70 74 2d 66 69 6e 61 6c | 27 2e 5c 6e 49 66 20 74 |pt-final|'.\nIf t|
|00000660| 68 69 73 20 69 73 20 61 | 20 6e 75 6d 62 65 72 2c |his is a| number,|
|00000670| 20 74 68 65 6e 20 74 68 | 61 74 20 6d 61 6e 79 20 | then th|at many |
|00000680| 62 65 65 70 73 20 77 69 | 6c 6c 20 6f 63 63 75 72 |beeps wi|ll occur|
|00000690| 2e 5c 6e 49 66 20 74 68 | 69 73 20 69 73 20 61 20 |.\nIf th|is is a |
|000006a0| 63 6f 6e 73 2c 20 74 68 | 65 20 63 61 72 20 69 73 |cons, th|e car is|
|000006b0| 20 68 6f 77 20 6d 61 6e | 79 20 62 65 65 70 73 2c | how man|y beeps,|
|000006c0| 20 61 6e 64 20 74 68 65 | 20 63 64 72 20 69 73 20 | and the| cdr is |
|000006d0| 74 68 65 5c 6e 20 20 64 | 65 6c 61 79 20 62 65 74 |the\n d|elay bet|
|000006e0| 77 65 65 6e 20 74 68 65 | 6d 20 28 61 20 66 6c 6f |ween the|m (a flo|
|000006f0| 61 74 2c 20 66 72 61 63 | 74 69 6f 6e 20 6f 66 20 |at, frac|tion of |
|00000700| 61 20 73 65 63 6f 6e 64 | 20 74 6f 20 73 6c 65 65 |a second| to slee|
|00000710| 70 2e 29 5c 6e 53 65 65 | 20 61 6c 73 6f 20 74 68 |p.)\nSee| also th|
|00000720| 65 20 76 61 72 69 61 62 | 6c 65 20 60 61 70 70 74 |e variab|le `appt|
|00000730| 2d 6d 73 67 2d 63 6f 75 | 6e 74 64 6f 77 6e 2d 6c |-msg-cou|ntdown-l|
|00000740| 69 73 74 27 22 20 3a 74 | 79 70 65 20 27 62 6f 6f |ist'" :t|ype 'boo|
|00000750| 6c 65 61 6e 20 3a 67 72 | 6f 75 70 20 27 61 70 70 |lean :gr|oup 'app|
|00000760| 74 29 0a 28 63 75 73 74 | 6f 6d 2d 64 65 63 6c 61 |t).(cust|om-decla|
|00000770| 72 65 2d 76 61 72 69 61 | 62 6c 65 20 27 61 70 70 |re-varia|ble 'app|
|00000780| 74 2d 64 69 73 70 6c 61 | 79 2d 6d 6f 64 65 2d 6c |t-displa|y-mode-l|
|00000790| 69 6e 65 20 27 74 20 22 | 2a 43 6f 6e 74 72 6f 6c |ine 't "|*Control|
|000007a0| 73 20 69 66 20 6d 69 6e | 75 74 65 73 2d 74 6f 2d |s if min|utes-to-|
|000007b0| 61 70 70 6f 69 6e 74 6d | 65 6e 74 20 73 68 6f 75 |appointm|ent shou|
|000007c0| 6c 64 20 62 65 20 64 69 | 73 70 6c 61 79 65 64 20 |ld be di|splayed |
|000007d0| 6f 6e 20 74 68 65 20 6d | 6f 64 65 20 6c 69 6e 65 |on the m|ode line|
|000007e0| 2e 22 20 3a 74 79 70 65 | 20 27 62 6f 6f 6c 65 61 |." :type| 'boolea|
|000007f0| 6e 20 3a 67 72 6f 75 70 | 20 27 61 70 70 74 29 0a |n :group| 'appt).|
|00000800| 28 63 75 73 74 6f 6d 2d | 64 65 63 6c 61 72 65 2d |(custom-|declare-|
|00000810| 76 61 72 69 61 62 6c 65 | 20 27 61 70 70 74 2d 61 |variable| 'appt-a|
|00000820| 6e 6e 6f 75 6e 63 65 2d | 6d 65 74 68 6f 64 20 27 |nnounce-|method '|
|00000830| 27 61 70 70 74 2d 77 69 | 6e 64 6f 77 2d 61 6e 6e |'appt-wi|ndow-ann|
|00000840| 6f 75 6e 63 65 20 22 2a | 54 68 65 20 6e 61 6d 65 |ounce "*|The name|
|00000850| 20 6f 66 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e | of the |function|
|00000860| 20 75 73 65 64 20 74 6f | 20 6e 6f 74 69 66 79 20 | used to| notify |
|00000870| 74 68 65 20 75 73 65 72 | 20 6f 66 20 61 6e 20 69 |the user| of an i|
|00000880| 6d 70 65 6e 64 69 6e 67 | 20 5c 6e 61 70 70 6f 69 |mpending| \nappoi|
|00000890| 6e 74 6d 65 6e 74 2e 20 | 20 54 68 69 73 20 69 73 |ntment. | This is|
|000008a0| 20 63 61 6c 6c 65 64 20 | 77 69 74 68 20 74 77 6f | called |with two|
|000008b0| 20 61 72 67 75 6d 65 6e | 74 73 2c 20 74 68 65 20 | argumen|ts, the |
|000008c0| 6e 75 6d 62 65 72 20 6f | 66 20 6d 69 6e 75 74 65 |number o|f minute|
|000008d0| 73 5c 6e 75 6e 74 69 6c | 20 74 68 65 20 61 70 70 |s\nuntil| the app|
|000008e0| 6f 69 6e 74 6d 65 6e 74 | 2c 20 61 6e 64 20 74 68 |ointment|, and th|
|000008f0| 65 20 61 70 70 6f 69 6e | 74 6d 65 6e 74 20 64 65 |e appoin|tment de|
|00000900| 73 63 72 69 70 74 69 6f | 6e 20 6c 69 73 74 2e 5c |scriptio|n list.\|
|00000910| 6e 5c 6e 52 65 61 73 6f | 6e 61 62 6c 65 20 76 61 |n\nReaso|nable va|
|00000920| 6c 75 65 73 20 66 6f 72 | 20 74 68 69 73 20 76 61 |lues for| this va|
|00000930| 72 69 61 62 6c 65 20 61 | 72 65 20 27 61 70 70 74 |riable a|re 'appt|
|00000940| 2d 77 69 6e 64 6f 77 2d | 61 6e 6e 6f 75 6e 63 65 |-window-|announce|
|00000950| 2c 5c 6e 27 61 70 70 74 | 2d 6d 65 73 73 61 67 65 |,\n'appt|-message|
|00000960| 2d 61 6e 6e 6f 75 6e 63 | 65 2c 20 6f 72 20 27 61 |-announc|e, or 'a|
|00000970| 70 70 74 2d 70 65 72 73 | 69 73 74 65 6e 74 2d 6d |ppt-pers|istent-m|
|00000980| 65 73 73 61 67 65 2d 61 | 6e 6e 6f 75 6e 63 65 2e |essage-a|nnounce.|
|00000990| 22 20 3a 74 79 70 65 20 | 27 66 75 6e 63 74 69 6f |" :type |'functio|
|000009a0| 6e 20 3a 67 72 6f 75 70 | 20 27 61 70 70 74 29 0a |n :group| 'appt).|
|000009b0| 23 40 32 35 36 20 54 68 | 65 20 6c 69 73 74 20 6f |#@256 Th|e list o|
|000009c0| 66 20 61 70 70 6f 69 6e | 74 6d 65 6e 74 73 20 66 |f appoin|tments f|
|000009d0| 6f 72 20 74 6f 64 61 79 | 2e 20 20 55 73 65 20 61 |or today|. Use a|
|000009e0| 70 70 74 2d 61 64 64 20 | 61 6e 64 20 61 70 70 74 |ppt-add |and appt|
|000009f0| 2d 64 65 6c 65 74 65 0a | 20 74 6f 20 61 64 64 20 |-delete.| to add |
|00000a00| 61 6e 64 20 64 65 6c 65 | 74 65 20 61 70 70 6f 69 |and dele|te appoi|
|00000a10| 6e 74 6d 65 6e 74 73 20 | 66 72 6f 6d 20 6c 69 73 |ntments |from lis|
|00000a20| 74 2e 20 20 54 68 65 20 | 6f 72 69 67 69 6e 61 6c |t. The |original|
|00000a30| 20 6c 69 73 74 20 69 73 | 20 67 65 6e 65 72 61 74 | list is| generat|
|00000a40| 65 64 0a 20 66 72 6f 6d | 20 74 68 65 20 74 6f 64 |ed. from| the tod|
|00000a50| 61 79 27 73 20 64 69 61 | 72 79 2d 65 6e 74 72 69 |ay's dia|ry-entri|
|00000a60| 65 73 2d 6c 69 73 74 2e | 20 54 68 65 20 6e 75 6d |es-list.| The num|
|00000a70| 62 65 72 20 62 65 66 6f | 72 65 20 65 61 63 68 20 |ber befo|re each |
|00000a80| 74 69 6d 65 2f 6d 65 73 | 73 61 67 65 0a 20 69 73 |time/mes|sage. is|
|00000a90| 20 74 68 65 20 74 69 6d | 65 20 69 6e 20 6d 69 6e | the tim|e in min|
|00000aa0| 75 74 65 73 20 61 66 74 | 65 72 20 6d 69 64 6e 69 |utes aft|er midni|
|00000ab0| 67 68 74 2e 1f 0a 28 64 | 65 66 76 61 72 20 61 70 |ght...(d|efvar ap|
|00000ac0| 70 74 2d 74 69 6d 65 2d | 6d 73 67 2d 6c 69 73 74 |pt-time-|msg-list|
|00000ad0| 20 6e 69 6c 20 28 23 24 | 20 2e 20 32 34 38 36 29 | nil (#$| . 2486)|
|00000ae0| 29 0a 23 40 35 38 20 31 | 31 3a 35 39 70 6d 20 69 |).#@58 1|1:59pm i|
|00000af0| 6e 20 6d 69 6e 75 74 65 | 73 20 2d 20 6e 75 6d 62 |n minute|s - numb|
|00000b00| 65 72 20 6f 66 20 6d 69 | 6e 75 74 65 73 20 69 6e |er of mi|nutes in|
|00000b10| 20 61 20 64 61 79 20 6d | 69 6e 75 73 20 31 2e 1f | a day m|inus 1..|
|00000b20| 0a 28 64 65 66 63 6f 6e | 73 74 20 6d 61 78 2d 74 |.(defcon|st max-t|
|00000b30| 69 6d 65 20 31 34 33 39 | 20 28 23 24 20 2e 20 32 |ime 1439| (#$ . 2|
|00000b40| 37 39 31 29 29 0a 28 62 | 79 74 65 2d 63 6f 64 65 |791)).(b|yte-code|
|00000b50| 20 22 c0 11 c1 5c 6e 42 | 12 c0 87 22 20 5b 2d 31 | "...\nB|..." [-1|
|00000b60| 20 61 70 70 74 2d 63 68 | 65 63 6b 2d 74 69 63 6b | appt-ch|eck-tick|
|00000b70| 20 63 75 72 72 65 6e 74 | 2d 6c 6f 61 64 2d 6c 69 | current|-load-li|
|00000b80| 73 74 5d 20 32 29 0a 23 | 40 34 37 20 49 66 20 6e |st] 2).#|@47 If n|
|00000b90| 6f 6e 2d 6e 69 6c 2c 20 | 66 72 61 6d 65 20 74 6f |on-nil, |frame to|
|00000ba0| 20 64 69 73 70 6c 61 79 | 20 61 70 70 6f 69 6e 74 | display| appoint|
|00000bb0| 6d 65 6e 74 73 20 69 6e | 2e 1f 0a 28 64 65 66 76 |ments in|...(defv|
|00000bc0| 61 72 20 61 70 70 74 2d | 64 69 73 70 2d 66 72 61 |ar appt-|disp-fra|
|00000bd0| 6d 65 20 6e 69 6c 20 28 | 23 24 20 2e 20 32 39 35 |me nil (|#$ . 295|
|00000be0| 36 29 29 0a 28 64 65 66 | 76 61 72 61 6c 69 61 73 |6)).(def|varalias|
|00000bf0| 20 27 61 70 70 74 2d 64 | 69 73 70 2d 73 63 72 65 | 'appt-d|isp-scre|
|00000c00| 65 6e 20 27 61 70 70 74 | 2d 64 69 73 70 2d 66 72 |en 'appt|-disp-fr|
|00000c10| 61 6d 65 29 0a 23 40 31 | 33 34 20 53 65 74 20 61 |ame).#@1|34 Set a|
|00000c20| 70 70 74 2d 61 6e 6e 6f | 75 6e 63 65 2d 6d 65 74 |ppt-anno|unce-met|
|00000c30| 68 6f 64 20 74 6f 20 74 | 68 65 20 6e 61 6d 65 20 |hod to t|he name |
|00000c40| 6f 66 20 74 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |of this |function|
|00000c50| 20 74 6f 20 63 61 75 73 | 65 20 61 70 70 6f 69 6e | to caus|e appoin|
|00000c60| 74 6d 65 6e 74 0a 6e 6f | 74 69 66 69 63 61 74 69 |tment.no|tificati|
|00000c70| 6f 6e 73 20 74 6f 20 62 | 65 20 67 69 76 65 6e 20 |ons to b|e given |
|00000c80| 76 69 61 20 6d 65 73 73 | 61 67 65 73 20 69 6e 20 |via mess|ages in |
|00000c90| 74 68 65 20 6d 69 6e 69 | 62 75 66 66 65 72 2e 1f |the mini|buffer..|
|00000ca0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 61 70 70 74 |.(defali|as 'appt|
|00000cb0| 2d 6d 65 73 73 61 67 65 | 2d 61 6e 6e 6f 75 6e 63 |-message|-announc|
|00000cc0| 65 20 23 5b 28 6d 69 6e | 2d 74 6f 2d 61 70 70 20 |e #[(min|-to-app |
|00000cd0| 61 70 70 74 29 20 22 c0 | 09 c2 61 ab 83 c3 aa 91 |appt) ".|..a.....|
|00000ce0| c4 c5 09 89 c6 61 ab 83 | c7 aa 81 c8 0e 09 41 40 |.....a..|......A@|
|00000cf0| 24 21 87 22 20 5b 6d 65 | 73 73 61 67 65 20 6d 69 |$!." [me|ssage mi|
|00000d00| 6e 2d 74 6f 2d 61 70 70 | 20 30 20 22 41 70 70 27 |n-to-app| 0 "App'|
|00000d10| 74 20 4e 4f 57 2e 22 20 | 66 6f 72 6d 61 74 20 22 |t NOW." |format "|
|00000d20| 41 70 70 27 74 20 69 6e | 20 25 64 20 6d 69 6e 75 |App't in| %d minu|
|00000d30| 74 65 25 73 20 2d 2d 20 | 25 73 22 20 31 20 22 22 |te%s -- |%s" 1 ""|
|00000d40| 20 22 73 22 20 61 70 70 | 74 5d 20 36 20 28 23 24 | "s" app|t] 6 (#$|
|00000d50| 20 2e 20 33 30 39 39 29 | 5d 29 0a 23 40 32 32 34 | . 3099)|]).#@224|
|00000d60| 20 53 65 74 20 61 70 70 | 74 2d 61 6e 6e 6f 75 6e | Set app|t-announ|
|00000d70| 63 65 2d 6d 65 74 68 6f | 64 20 74 6f 20 74 68 65 |ce-metho|d to the|
|00000d80| 20 6e 61 6d 65 20 6f 66 | 20 74 68 69 73 20 66 75 | name of| this fu|
|00000d90| 6e 63 74 69 6f 6e 20 74 | 6f 20 63 61 75 73 65 20 |nction t|o cause |
|00000da0| 61 70 70 6f 69 6e 74 6d | 65 6e 74 0a 6e 6f 74 69 |appointm|ent.noti|
|00000db0| 66 69 63 61 74 69 6f 6e | 73 20 74 6f 20 62 65 20 |fication|s to be |
|00000dc0| 67 69 76 65 6e 20 76 69 | 61 20 6d 65 73 73 61 67 |given vi|a messag|
|00000dd0| 65 73 20 69 6e 20 74 68 | 65 20 6d 69 6e 69 62 75 |es in th|e minibu|
|00000de0| 66 66 65 72 2c 20 62 75 | 74 20 68 61 76 65 20 74 |ffer, bu|t have t|
|00000df0| 68 6f 73 65 20 0a 6d 65 | 73 73 61 67 65 73 20 73 |hose .me|ssages s|
|00000e00| 74 61 79 20 61 72 6f 75 | 6e 64 20 65 76 65 6e 20 |tay arou|nd even |
|00000e10| 69 66 20 79 6f 75 20 74 | 79 70 65 20 73 6f 6d 65 |if you t|ype some|
|00000e20| 74 68 69 6e 67 20 28 75 | 6e 6c 69 6b 65 20 6e 6f |thing (u|nlike no|
|00000e30| 72 6d 61 6c 20 6d 65 73 | 73 61 67 65 73 29 2e 1f |rmal mes|sages)..|
|00000e40| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 61 70 70 74 |.(defali|as 'appt|
|00000e50| 2d 70 65 72 73 69 73 74 | 65 6e 74 2d 6d 65 73 73 |-persist|ent-mess|
|00000e60| 61 67 65 2d 61 6e 6e 6f | 75 6e 63 65 20 23 5b 28 |age-anno|unce #[(|
|00000e70| 6d 69 6e 2d 74 6f 2d 61 | 70 70 20 61 70 70 74 29 |min-to-a|pp appt)|
|00000e80| 20 22 08 c1 61 ab 88 c2 | c3 0c 41 40 5c 22 aa 90 | "..a...|..A@\"..|
|00000e90| c2 c5 08 89 c6 61 ab 83 | c7 aa 81 c8 0c 41 40 24 |.....a..|.....A@$|
|00000ea0| c9 20 ca 20 61 1e 0b 1e | 0c 0e 0b ac 85 8a cd 8b |. . a...|........|
|00000eb0| 88 29 0e 0b ad 84 0e 0c | c7 98 3f ad 85 ce cf 0e |.)......|..?.....|
|00000ec0| 0c 5c 22 2a 87 22 20 5b | 6d 69 6e 2d 74 6f 2d 61 |.\"*." [|min-to-a|
|00000ed0| 70 70 20 30 20 66 6f 72 | 6d 61 74 20 22 41 70 70 |pp 0 for|mat "App|
|00000ee0| 27 74 20 4e 4f 57 20 2d | 2d 20 25 73 22 20 61 70 |'t NOW -|- %s" ap|
|00000ef0| 70 74 20 22 41 70 70 27 | 74 20 69 6e 20 25 64 20 |pt "App'|t in %d |
|00000f00| 6d 69 6e 75 74 65 25 73 | 20 2d 2d 20 25 73 22 20 |minute%s| -- %s" |
|00000f10| 31 20 22 22 20 22 73 22 | 20 73 65 6c 65 63 74 65 |1 "" "s"| selecte|
|00000f20| 64 2d 77 69 6e 64 6f 77 | 20 6d 69 6e 69 62 75 66 |d-window| minibuf|
|00000f30| 66 65 72 2d 77 69 6e 64 | 6f 77 20 69 6e 2d 65 63 |fer-wind|ow in-ec|
|00000f40| 68 6f 2d 61 72 65 61 2d | 61 6c 72 65 61 64 79 20 |ho-area-|already |
|00000f50| 73 74 72 20 28 28 62 79 | 74 65 2d 63 6f 64 65 20 |str ((by|te-code |
|00000f60| 22 c0 c1 20 21 88 65 64 | 7c 88 5c 6e 63 87 22 20 |".. !.ed||.\nc." |
|00000f70| 5b 73 65 6c 65 63 74 2d | 77 69 6e 64 6f 77 20 6d |[select-|window m|
|00000f80| 69 6e 69 62 75 66 66 65 | 72 2d 77 69 6e 64 6f 77 |inibuffe|r-window|
|00000f90| 20 73 74 72 5d 20 32 29 | 29 20 6d 65 73 73 61 67 | str] 2)|) messag|
|00000fa0| 65 20 22 25 73 22 5d 20 | 35 20 28 23 24 20 2e 20 |e "%s"] |5 (#$ . |
|00000fb0| 33 34 32 35 29 5d 29 0a | 28 63 75 73 74 6f 6d 2d |3425)]).|(custom-|
|00000fc0| 64 65 63 6c 61 72 65 2d | 76 61 72 69 61 62 6c 65 |declare-|variable|
|00000fd0| 20 27 61 70 70 74 2d 64 | 69 73 70 6c 61 79 2d 64 | 'appt-d|isplay-d|
|00000fe0| 75 72 61 74 69 6f 6e 20 | 27 35 20 22 2a 54 68 65 |uration |'5 "*The|
|00000ff0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 73 65 63 6f 6e | number |of secon|
|00001000| 64 73 20 61 6e 20 61 70 | 70 6f 69 6e 74 6d 65 6e |ds an ap|pointmen|
|00001010| 74 20 6d 65 73 73 61 67 | 65 20 69 73 20 64 69 73 |t messag|e is dis|
|00001020| 70 6c 61 79 65 64 20 69 | 6e 20 69 74 73 20 6f 77 |played i|n its ow|
|00001030| 6e 20 5c 6e 20 77 69 6e | 64 6f 77 20 69 66 20 61 |n \n win|dow if a|
|00001040| 70 70 74 2d 61 6e 6e 6f | 75 6e 63 65 2d 6d 65 74 |ppt-anno|unce-met|
|00001050| 68 6f 64 20 69 73 20 27 | 61 70 70 74 2d 77 69 6e |hod is '|appt-win|
|00001060| 64 6f 77 2d 61 6e 6e 6f | 75 6e 63 65 2e 22 20 3a |dow-anno|unce." :|
|00001070| 74 79 70 65 20 27 69 6e | 74 65 67 65 72 20 3a 67 |type 'in|teger :g|
|00001080| 72 6f 75 70 20 27 61 70 | 70 74 29 0a 23 40 32 32 |roup 'ap|pt).#@22|
|00001090| 31 20 53 65 74 20 61 70 | 70 74 2d 61 6e 6e 6f 75 |1 Set ap|pt-annou|
|000010a0| 6e 63 65 2d 6d 65 74 68 | 6f 64 20 74 6f 20 74 68 |nce-meth|od to th|
|000010b0| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 69 73 20 66 |e name o|f this f|
|000010c0| 75 6e 63 74 69 6f 6e 20 | 74 6f 20 63 61 75 73 65 |unction |to cause|
|000010d0| 20 61 70 70 6f 69 6e 74 | 6d 65 6e 74 20 0a 6e 6f | appoint|ment .no|
|000010e0| 74 69 66 69 63 61 74 69 | 6f 6e 73 20 74 6f 20 62 |tificati|ons to b|
|000010f0| 65 20 67 69 76 65 6e 20 | 76 69 61 20 6d 65 73 73 |e given |via mess|
|00001100| 61 67 65 73 20 69 6e 20 | 61 20 70 6f 70 2d 75 70 |ages in |a pop-up|
|00001110| 20 77 69 6e 64 6f 77 2e | 20 20 54 68 65 20 76 61 | window.| The va|
|00001120| 72 69 61 62 6c 65 0a 61 | 70 70 74 2d 64 69 73 70 |riable.a|ppt-disp|
|00001130| 6c 61 79 2d 64 75 72 61 | 74 69 6f 6e 20 63 6f 6e |lay-dura|tion con|
|00001140| 74 72 6f 6c 73 20 68 6f | 77 20 6c 6f 6e 67 20 74 |trols ho|w long t|
|00001150| 68 69 73 20 77 69 6e 64 | 6f 77 20 73 68 6f 75 6c |his wind|ow shoul|
|00001160| 64 20 62 65 20 6c 65 66 | 74 20 75 70 2e 1f 0a 28 |d be lef|t up...(|
|00001170| 64 65 66 61 6c 69 61 73 | 20 27 61 70 70 74 2d 77 |defalias| 'appt-w|
|00001180| 69 6e 64 6f 77 2d 61 6e | 6e 6f 75 6e 63 65 20 23 |indow-an|nounce #|
|00001190| 5b 28 6d 69 6e 2d 74 6f | 2d 61 70 70 20 61 70 70 |[(min-to|-app app|
|000011a0| 74 29 20 22 c0 c1 21 88 | 8a c2 8b 29 87 22 20 5b |t) "..!.|...)." [|
|000011b0| 72 65 71 75 69 72 65 20 | 65 6c 65 63 74 72 69 63 |require |electric|
|000011c0| 20 28 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 c1 | ((byte-|code "..|
|000011d0| 20 21 ac 88 c2 c3 20 21 | 88 c4 20 88 c5 1e 06 c7 | !.... !|.. .....|
|000011e0| 8e c8 c9 21 71 16 06 ca | 0e 0b cc 61 ab 83 cd aa |...!q...|...a....|
|000011f0| 8d ce 0e 0b 89 cf 61 ab | 83 d0 aa 81 d1 51 d2 d3 |......a.|.....Q..|
|00001200| d4 20 d5 d6 4f 21 89 1e | 17 d8 56 ab 86 0e 17 d8 |. ..O!..|..V.....|
|00001210| 5a aa 82 0e 17 d9 d4 20 | da db 4f 0e 17 d8 57 ab |Z...... |..O...W.|
|00001220| 83 dc aa 81 dd 52 29 de | b0 05 16 1f e0 0e 06 21 |.....R).|.......!|
|00001230| 88 0e 21 41 40 63 88 e2 | e3 0e 06 21 21 88 e4 c5 |..!A@c..|...!!...|
|00001240| 21 88 e5 0e 26 21 2a 87 | 22 20 5b 77 69 6e 64 6f |!...&!*.|" [windo|
|00001250| 77 2d 6d 69 6e 69 62 75 | 66 66 65 72 2d 70 20 73 |w-minibu|ffer-p s|
|00001260| 65 6c 65 63 74 65 64 2d | 77 69 6e 64 6f 77 20 73 |elected-|window s|
|00001270| 65 6c 65 63 74 2d 77 69 | 6e 64 6f 77 20 66 72 61 |elect-wi|ndow fra|
|00001280| 6d 65 2d 6c 6f 77 65 73 | 74 2d 77 69 6e 64 6f 77 |me-lowes|t-window|
|00001290| 20 73 70 6c 69 74 2d 77 | 69 6e 64 6f 77 20 6e 69 | split-w|indow ni|
|000012a0| 6c 20 61 70 70 74 2d 64 | 69 73 70 2d 62 75 66 20 |l appt-d|isp-buf |
|000012b0| 28 28 62 79 74 65 2d 63 | 6f 64 65 20 22 08 ab 84 |((byte-c|ode "...|
|000012c0| c1 08 21 88 c1 87 22 20 | 5b 61 70 70 74 2d 64 69 |..!..." |[appt-di|
|000012d0| 73 70 2d 62 75 66 20 6b | 69 6c 6c 2d 62 75 66 66 |sp-buf k|ill-buff|
|000012e0| 65 72 5d 20 32 29 29 20 | 67 65 74 2d 62 75 66 66 |er] 2)) |get-buff|
|000012f0| 65 72 2d 63 72 65 61 74 | 65 20 22 2a 61 70 70 74 |er-creat|e "*appt|
|00001300| 2d 62 75 66 2a 22 20 22 | 2d 2d 2d 2d 2d 2d 2d 2d |-buf*" "|--------|
|00001310| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 20 41 70 70 |--------|---- App|
|00001320| 6f 69 6e 74 6d 65 6e 74 | 20 22 20 6d 69 6e 2d 74 |ointment| " min-t|
|00001330| 6f 2d 61 70 70 20 30 20 | 22 4e 4f 57 22 20 22 69 |o-app 0 |"NOW" "i|
|00001340| 6e 20 22 20 31 20 22 20 | 6d 69 6e 75 74 65 22 20 |n " 1 " |minute" |
|00001350| 22 20 6d 69 6e 75 74 65 | 73 22 20 22 2e 20 28 22 |" minute|s" ". ("|
|00001360| 20 73 74 72 69 6e 67 2d | 74 6f 2d 69 6e 74 20 63 | string-|to-int c|
|00001370| 75 72 72 65 6e 74 2d 74 | 69 6d 65 2d 73 74 72 69 |urrent-t|ime-stri|
|00001380| 6e 67 20 31 31 20 31 33 | 20 68 20 31 32 20 22 3a |ng 11 13| h 12 ":|
|00001390| 22 20 31 34 20 31 36 20 | 22 61 6d 22 20 22 70 6d |" 14 16 |"am" "pm|
|000013a0| 22 20 22 29 20 25 2d 22 | 20 6d 6f 64 65 6c 69 6e |" ") %-"| modelin|
|000013b0| 65 2d 66 6f 72 6d 61 74 | 20 70 6f 70 2d 74 6f 2d |e-format| pop-to-|
|000013c0| 62 75 66 66 65 72 20 61 | 70 70 74 20 73 68 72 69 |buffer a|ppt shri|
|000013d0| 6e 6b 2d 77 69 6e 64 6f | 77 2d 69 66 2d 6c 61 72 |nk-windo|w-if-lar|
|000013e0| 67 65 72 2d 74 68 61 6e | 2d 62 75 66 66 65 72 20 |ger-than|-buffer |
|000013f0| 67 65 74 2d 62 75 66 66 | 65 72 2d 77 69 6e 64 6f |get-buff|er-windo|
|00001400| 77 20 73 65 74 2d 62 75 | 66 66 65 72 2d 6d 6f 64 |w set-bu|ffer-mod|
|00001410| 69 66 69 65 64 2d 70 20 | 73 69 74 2d 66 6f 72 20 |ified-p |sit-for |
|00001420| 61 70 70 74 2d 64 69 73 | 70 6c 61 79 2d 64 75 72 |appt-dis|play-dur|
|00001430| 61 74 69 6f 6e 5d 20 39 | 29 29 5d 20 32 20 28 23 |ation] 9|))] 2 (#|
|00001440| 24 20 2e 20 34 32 34 32 | 29 5d 29 0a 28 62 79 74 |$ . 4242|)]).(byt|
|00001450| 65 2d 63 6f 64 65 20 22 | c0 c1 21 ac 82 c2 11 c1 |e-code "|..!.....|
|00001460| 0b 42 13 c4 c5 c1 5c 22 | 87 22 20 5b 62 6f 75 6e |.B....\"|." [boun|
|00001470| 64 70 20 61 70 70 74 2d | 66 72 61 6d 65 2d 64 65 |dp appt-|frame-de|
|00001480| 66 61 75 6c 74 73 20 6e | 69 6c 20 63 75 72 72 65 |faults n|il curre|
|00001490| 6e 74 2d 6c 6f 61 64 2d | 6c 69 73 74 20 64 65 66 |nt-load-|list def|
|000014a0| 76 61 72 61 6c 69 61 73 | 20 61 70 70 74 2d 73 63 |varalias| appt-sc|
|000014b0| 72 65 65 6e 2d 64 65 66 | 61 75 6c 74 73 5d 20 33 |reen-def|aults] 3|
|000014c0| 29 0a 23 40 31 33 35 20 | 53 65 74 20 61 70 70 74 |).#@135 |Set appt|
|000014d0| 2d 61 6e 6e 6f 75 6e 63 | 65 2d 6d 65 74 68 6f 64 |-announc|e-method|
|000014e0| 20 74 6f 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 | to the |name of |
|000014f0| 74 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 74 6f |this fun|ction to|
|00001500| 20 63 61 75 73 65 20 61 | 70 70 6f 69 6e 74 6d 65 | cause a|ppointme|
|00001510| 6e 74 20 0a 6e 6f 74 69 | 66 69 63 61 74 69 6f 6e |nt .noti|fication|
|00001520| 73 20 74 6f 20 62 65 20 | 67 69 76 65 6e 20 76 69 |s to be |given vi|
|00001530| 61 20 6d 65 73 73 61 67 | 65 73 20 69 6e 20 61 20 |a messag|es in a |
|00001540| 70 6f 70 2d 75 70 20 66 | 72 61 6d 65 2e 1f 0a 28 |pop-up f|rame...(|
|00001550| 64 65 66 61 6c 69 61 73 | 20 27 61 70 70 74 2d 66 |defalias| 'appt-f|
|00001560| 72 61 6d 65 2d 61 6e 6e | 6f 75 6e 63 65 20 23 5b |rame-ann|ounce #[|
|00001570| 28 6d 69 6e 2d 74 6f 2d | 61 70 70 20 61 70 70 74 |(min-to-|app appt|
|00001580| 29 20 22 8a c0 c1 21 71 | 88 c2 20 88 c3 0c c5 61 |) "...!q|.. ....a|
|00001590| ab 83 c6 aa 8c c7 0c 89 | c8 61 ab 83 c9 aa 81 ca |........|.a......|
|000015a0| 51 cb cc cd 20 ce cf 4f | 21 89 1e 10 d1 56 ab 86 |Q... ..O|!....V..|
|000015b0| 0e 10 d1 5a aa 82 0e 10 | d2 cd 20 d3 d4 4f 0e 10 |...Z....|.. ..O..|
|000015c0| d1 57 ab 83 d5 aa 81 d6 | 52 29 d7 b0 05 16 18 0e |.W......|R)......|
|000015d0| 19 41 40 63 88 da db dc | 65 64 5c 22 dd 5c 5c 5e |.A@c....|ed\".\\^|
|000015e0| 5d 1e 1e 0e 1f ab a6 e0 | 0e 1f 21 ab a0 e1 20 1e |].......|..!... .|
|000015f0| 5c 22 e3 0e 1f 21 88 e4 | 0e 1f 21 88 e5 0e 1f 0e |\"...!..|..!.....|
|00001600| 1e 5c 22 88 e6 c5 21 88 | e3 0e 5c 22 21 29 aa 8a |.\"...!.|..\"!)..|
|00001610| e7 20 16 1f e5 0e 1f 0e | 1e 5c 22 2a 87 22 20 5b |. ......|.\"*." [|
|00001620| 67 65 74 2d 62 75 66 66 | 65 72 2d 63 72 65 61 74 |get-buff|er-creat|
|00001630| 65 20 22 2a 61 70 70 74 | 2d 62 75 66 2a 22 20 65 |e "*appt|-buf*" e|
|00001640| 72 61 73 65 2d 62 75 66 | 66 65 72 20 22 2d 2d 2d |rase-buf|fer "---|
|00001650| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001660| 2d 20 41 70 70 6f 69 6e | 74 6d 65 6e 74 20 22 20 |- Appoin|tment " |
|00001670| 6d 69 6e 2d 74 6f 2d 61 | 70 70 20 30 20 22 4e 4f |min-to-a|pp 0 "NO|
|00001680| 57 22 20 22 69 6e 20 22 | 20 31 20 22 20 6d 69 6e |W" "in "| 1 " min|
|00001690| 75 74 65 22 20 22 20 6d | 69 6e 75 74 65 73 22 20 |ute" " m|inutes" |
|000016a0| 22 2e 20 28 22 20 73 74 | 72 69 6e 67 2d 74 6f 2d |". (" st|ring-to-|
|000016b0| 69 6e 74 20 63 75 72 72 | 65 6e 74 2d 74 69 6d 65 |int curr|ent-time|
|000016c0| 2d 73 74 72 69 6e 67 20 | 31 31 20 31 33 20 68 20 |-string |11 13 h |
|000016d0| 31 32 20 22 3a 22 20 31 | 34 20 31 36 20 22 61 6d |12 ":" 1|4 16 "am|
|000016e0| 22 20 22 70 6d 22 20 22 | 29 20 25 2d 22 20 6d 6f |" "pm" "|) %-" mo|
|000016f0| 64 65 6c 69 6e 65 2d 66 | 6f 72 6d 61 74 20 61 70 |deline-f|ormat ap|
|00001700| 70 74 20 31 30 20 32 30 | 20 63 6f 75 6e 74 2d 6c |pt 10 20| count-l|
|00001710| 69 6e 65 73 20 32 20 68 | 65 69 67 68 74 20 61 70 |ines 2 h|eight ap|
|00001720| 70 74 2d 64 69 73 70 2d | 66 72 61 6d 65 20 66 72 |pt-disp-|frame fr|
|00001730| 61 6d 65 2d 6c 69 76 65 | 2d 70 20 73 65 6c 65 63 |ame-live|-p selec|
|00001740| 74 65 64 2d 66 72 61 6d | 65 20 73 20 73 65 6c 65 |ted-fram|e s sele|
|00001750| 63 74 2d 66 72 61 6d 65 | 20 6d 61 6b 65 2d 66 72 |ct-frame| make-fr|
|00001760| 61 6d 65 2d 76 69 73 69 | 62 6c 65 20 73 65 74 2d |ame-visi|ble set-|
|00001770| 66 72 61 6d 65 2d 68 65 | 69 67 68 74 20 73 69 74 |frame-he|ight sit|
|00001780| 2d 66 6f 72 20 6d 61 6b | 65 2d 66 72 61 6d 65 5d |-for mak|e-frame]|
|00001790| 20 39 20 28 23 24 20 2e | 20 35 33 32 30 29 5d 29 | 9 (#$ .| 5320)])|
|000017a0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 61 70 70 74 |.(defali|as 'appt|
|000017b0| 2d 73 63 72 65 65 6e 2d | 61 6e 6e 6f 75 6e 63 65 |-screen-|announce|
|000017c0| 20 27 61 70 70 74 2d 66 | 72 61 6d 65 2d 61 6e 6e | 'appt-f|rame-ann|
|000017d0| 6f 75 6e 63 65 29 0a 28 | 63 75 73 74 6f 6d 2d 64 |ounce).(|custom-d|
|000017e0| 65 63 6c 61 72 65 2d 76 | 61 72 69 61 62 6c 65 20 |eclare-v|ariable |
|000017f0| 27 61 70 70 74 2d 6d 6f | 64 65 2d 6c 69 6e 65 2d |'appt-mo|de-line-|
|00001800| 73 74 72 69 6e 67 20 27 | 22 22 20 22 2a 54 68 65 |string '|"" "*The|
|00001810| 20 73 74 72 69 6e 67 20 | 64 69 73 70 6c 61 79 65 | string |displaye|
|00001820| 64 20 69 6e 20 74 68 65 | 20 6d 6f 64 65 20 6c 69 |d in the| mode li|
|00001830| 6e 65 20 62 79 20 74 68 | 65 20 61 70 70 6f 69 6e |ne by th|e appoin|
|00001840| 74 6d 65 6e 74 20 70 61 | 63 6b 61 67 65 2e 22 20 |tment pa|ckage." |
|00001850| 3a 74 79 70 65 20 27 73 | 74 72 69 6e 67 20 3a 67 |:type 's|tring :g|
|00001860| 72 6f 75 70 20 27 61 70 | 70 74 29 0a 23 40 34 39 |roup 'ap|pt).#@49|
|00001870| 20 41 64 64 20 61 6e 20 | 61 70 70 6f 69 6e 74 6d | Add an |appointm|
|00001880| 65 6e 74 20 61 6e 6e 6f | 74 61 74 69 6f 6e 20 74 |ent anno|tation t|
|00001890| 6f 20 74 68 65 20 6d 6f | 64 65 20 6c 69 6e 65 2e |o the mo|de line.|
|000018a0| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 61 70 70 |..(defal|ias 'app|
|000018b0| 74 2d 64 69 73 70 6c 61 | 79 2d 6d 6f 64 65 2d 6c |t-displa|y-mode-l|
|000018c0| 69 6e 65 20 23 5b 28 6d | 69 6e 2d 74 6f 2d 61 70 |ine #[(m|in-to-ap|
|000018d0| 70 29 20 22 08 ab 99 09 | ab 96 09 c2 61 ab 83 c3 |p) "....|....a...|
|000018e0| aa 8f c4 09 89 c5 61 ab | 83 c6 aa 81 c7 51 aa 81 |......a.|.....Q..|
|000018f0| c8 16 09 08 ab a6 0e 5c | 6e ac 87 c8 c9 44 16 5c |.......\|n....D.\|
|00001900| 6e aa 9b 0e 5c 6e 3b ab | 88 0e 5c 6e c9 44 16 5c |n...\n;.|..\n.D.\|
|00001910| 6e aa 8e c9 0e 5c 6e 73 | ac 88 cb 0e 5c 6e c9 43 |n....\ns|....\n.C|
|00001920| 5c 22 16 5c 6e 8a cc 20 | 71 88 29 cd ce 20 21 88 |\".\n.. |q.).. !.|
|00001930| cf c2 21 87 22 20 5b 61 | 70 70 74 2d 64 69 73 70 |..!." [a|ppt-disp|
|00001940| 6c 61 79 2d 6d 6f 64 65 | 2d 6c 69 6e 65 20 6d 69 |lay-mode|-line mi|
|00001950| 6e 2d 74 6f 2d 61 70 70 | 20 30 20 22 41 70 70 27 |n-to-app| 0 "App'|
|00001960| 74 20 4e 4f 57 20 22 20 | 22 41 70 70 27 74 20 69 |t NOW " |"App't i|
|00001970| 6e 20 22 20 31 20 22 20 | 6d 69 6e 75 74 65 20 20 |n " 1 " |minute |
|00001980| 22 20 22 20 6d 69 6e 75 | 74 65 73 20 22 20 22 22 |" " minu|tes " ""|
|00001990| 20 61 70 70 74 2d 6d 6f | 64 65 2d 6c 69 6e 65 2d | appt-mo|de-line-|
|000019a0| 73 74 72 69 6e 67 20 67 | 6c 6f 62 61 6c 2d 6d 6f |string g|lobal-mo|
|000019b0| 64 65 2d 73 74 72 69 6e | 67 20 61 70 70 65 6e 64 |de-strin|g append|
|000019c0| 20 6f 74 68 65 72 2d 62 | 75 66 66 65 72 20 73 65 | other-b|uffer se|
|000019d0| 74 2d 62 75 66 66 65 72 | 2d 6d 6f 64 69 66 69 65 |t-buffer|-modifie|
|000019e0| 64 2d 70 20 62 75 66 66 | 65 72 2d 6d 6f 64 69 66 |d-p buff|er-modif|
|000019f0| 69 65 64 2d 70 20 73 69 | 74 2d 66 6f 72 5d 20 34 |ied-p si|t-for] 4|
|00001a00| 20 28 23 24 20 2e 20 36 | 32 35 37 29 5d 29 0a 23 | (#$ . 6|257)]).#|
|00001a10| 40 35 38 20 43 6f 6e 76 | 65 72 74 20 68 6f 75 72 |@58 Conv|ert hour|
|00001a20| 3a 6d 69 6e 5b 61 6d 2f | 70 6d 5d 20 66 6f 72 6d |:min[am/|pm] form|
|00001a30| 61 74 20 74 6f 20 6d 69 | 6e 75 74 65 73 20 66 72 |at to mi|nutes fr|
|00001a40| 6f 6d 20 6d 69 64 6e 69 | 67 68 74 2e 1f 0a 28 64 |om midni|ght...(d|
|00001a50| 65 66 61 6c 69 61 73 20 | 27 61 70 70 74 2d 63 6f |efalias |'appt-co|
|00001a60| 6e 76 65 72 74 2d 74 69 | 6d 65 20 23 5b 28 74 69 |nvert-ti|me #[(ti|
|00001a70| 6d 65 32 63 6f 6e 76 29 | 20 22 c0 c1 5c 6e 5c 22 |me2conv)| "..\n\"|
|00001a80| ab 82 c3 87 c0 c4 5c 6e | 5c 22 ab 82 c5 87 c3 89 |......\n|\"......|
|00001a90| 1e 06 1e 07 c0 c8 5c 6e | 5c 22 ac 85 c9 ca 5c 6e |......\n|\"....\n|
|00001aa0| 5c 22 88 cb 5c 6e cc 94 | cc 95 4f 21 16 07 cd 94 |\"..\n..|..O!....|
|00001ab0| ab 8a cb 5c 6e cd 94 cd | 95 4f 21 16 06 ce 94 ab |...\n...|.O!.....|
|00001ac0| b2 0e 07 c3 55 ac 86 0e | 07 cf 56 ab 85 c9 d0 5c |....U...|..V....\|
|00001ad0| 6e 5c 22 88 c0 d1 5c 6e | ce 94 d2 4f 5c 22 ab 8b |n\"...\n|...O\"..|
|00001ae0| 0e 07 cf 55 ab 91 c3 16 | 07 aa 8c 0e 07 cf 57 ab |...U....|......W.|
|00001af0| 86 0e 07 cf 5c 5c 16 07 | 0e 06 d3 56 ab 85 c9 d4 |....\\..|...V....|
|00001b00| 5c 6e 5c 22 88 0e 07 d5 | 5f 0e 06 5c 5c 2a 87 22 |\n\"....|_..\\*."|
|00001b10| 20 5b 73 74 72 69 6e 67 | 2d 6d 61 74 63 68 20 22 | [string|-match "|
|00001b20| 5e 5b 20 09 5d 2a 6d 69 | 64 6e 69 5c 5c 28 67 68 |^[ .]*mi|dni\\(gh|
|00001b30| 74 5c 5c 7c 74 65 5c 5c | 29 5b 20 09 5d 2a 5c 5c |t\\|te\\|)[ .]*\\|
|00001b40| 27 22 20 74 69 6d 65 32 | 63 6f 6e 76 20 30 20 22 |'" time2|conv 0 "|
|00001b50| 5e 5b 20 09 5d 2a 6e 6f | 6f 6e 5b 20 09 5d 2a 5c |^[ .]*no|on[ .]*\|
|00001b60| 5c 27 22 20 37 32 30 20 | 6d 69 6e 20 68 72 20 22 |\'" 720 |min hr "|
|00001b70| 5c 5c 60 5b 20 09 5d 2a | 5c 5c 28 5b 30 2d 39 5d |\\`[ .]*|\\([0-9]|
|00001b80| 5b 30 2d 39 5d 3f 5c 5c | 29 5b 20 09 5d 2a 5c 5c |[0-9]?\\|)[ .]*\\|
|00001b90| 28 3a 5b 20 09 5d 2a 5c | 5c 28 5b 30 2d 39 5d 5b |(:[ .]*\|\([0-9][|
|00001ba0| 30 2d 39 5d 5c 5c 29 5c | 5c 29 3f 5b 20 09 5d 2a |0-9]\\)\|\)?[ .]*|
|00001bb0| 5c 5c 28 61 6d 5c 5c 7c | 70 6d 5c 5c 29 3f 22 20 |\\(am\\||pm\\)?" |
|00001bc0| 65 72 72 6f 72 20 22 75 | 6e 70 61 72 73 61 62 6c |error "u|nparsabl|
|00001bd0| 65 20 74 69 6d 65 20 5c | 22 25 73 5c 22 22 20 73 |e time \|"%s\"" s|
|00001be0| 74 72 69 6e 67 2d 74 6f | 2d 69 6e 74 20 31 20 33 |tring-to|-int 1 3|
|00001bf0| 20 34 20 31 32 20 22 6d | 69 78 69 6e 67 20 31 32 | 4 12 "m|ixing 12|
|00001c00| 68 72 20 61 6e 64 20 32 | 34 20 68 72 20 74 69 6d |hr and 2|4 hr tim|
|00001c10| 65 21 20 20 25 73 22 20 | 22 61 6d 22 20 6e 69 6c |e! %s" |"am" nil|
|00001c20| 20 35 39 20 22 6d 69 6e | 75 74 65 73 20 6f 75 74 | 59 "min|utes out|
|00001c30| 61 20 62 6f 75 6e 64 73 | 20 2d 20 25 73 22 20 36 |a bounds| - %s" 6|
|00001c40| 30 5d 20 35 20 28 23 24 | 20 2e 20 36 36 37 36 29 |0] 5 (#$| . 6676)|
|00001c50| 5d 29 0a 23 40 35 33 20 | 52 65 74 75 72 6e 73 20 |]).#@53 |Returns |
|00001c60| 74 68 65 20 63 75 72 72 | 65 6e 74 20 74 69 6d 65 |the curr|ent time|
|00001c70| 20 69 6e 20 6d 69 6e 75 | 74 65 73 20 73 69 6e 63 | in minu|tes sinc|
|00001c80| 65 20 6d 69 64 6e 69 67 | 68 74 2e 1f 0a 28 64 65 |e midnig|ht...(de|
|00001c90| 66 61 6c 69 61 73 20 27 | 61 70 70 74 2d 63 75 72 |falias '|appt-cur|
|00001ca0| 72 65 6e 74 2d 74 69 6d | 65 2d 69 6e 2d 6d 69 6e |rent-tim|e-in-min|
|00001cb0| 75 74 65 73 20 23 5b 6e | 69 6c 20 22 c0 20 19 c2 |utes #[n|il ". ..|
|00001cc0| 09 c3 c4 4f 21 1d c2 09 | c6 c7 4f 21 1e 08 0d c9 |...O!...|..O!....|
|00001cd0| 5f 0e 08 5c 5c 2b 87 22 | 20 5b 63 75 72 72 65 6e |_..\\+."| [curren|
|00001ce0| 74 2d 74 69 6d 65 2d 73 | 74 72 69 6e 67 20 73 74 |t-time-s|tring st|
|00001cf0| 72 20 73 74 72 69 6e 67 | 2d 74 6f 2d 69 6e 74 20 |r string|-to-int |
|00001d00| 31 31 20 31 33 20 68 6f | 75 72 20 31 34 20 31 36 |11 13 ho|ur 14 16|
|00001d10| 20 6d 69 6e 20 36 30 5d | 20 34 20 28 23 24 20 2e | min 60]| 4 (#$ .|
|00001d20| 20 37 32 35 36 29 5d 29 | 0a 28 64 65 66 61 6c 69 | 7256)])|.(defali|
|00001d30| 61 73 20 27 61 70 70 74 | 2d 73 6f 72 74 2d 6c 69 |as 'appt|-sort-li|
|00001d40| 73 74 20 23 5b 28 61 70 | 70 74 2d 6c 69 73 74 29 |st #[(ap|pt-list)|
|00001d50| 20 22 c0 c1 5c 6e 21 c3 | 5c 22 87 22 20 5b 73 6f | "..\n!.|\"." [so|
|00001d60| 72 74 20 63 6f 70 79 2d | 73 65 71 75 65 6e 63 65 |rt copy-|sequence|
|00001d70| 20 61 70 70 74 2d 6c 69 | 73 74 20 23 5b 28 78 20 | appt-li|st #[(x |
|00001d80| 79 29 20 22 08 40 40 09 | 40 40 57 87 22 20 5b 78 |y) ".@@.|@@W." [x|
|00001d90| 20 79 5d 20 32 5d 5d 20 | 33 5d 29 0a 23 40 35 31 | y] 2]] |3]).#@51|
|00001da0| 20 52 65 74 75 72 6e 20 | 61 6e 20 75 70 64 61 74 | Return |an updat|
|00001db0| 65 64 20 6c 69 73 74 20 | 6f 66 20 61 70 70 6f 69 |ed list |of appoi|
|00001dc0| 6e 74 6d 65 6e 74 73 20 | 66 6f 72 20 74 6f 64 61 |ntments |for toda|
|00001dd0| 79 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 61 |y...(def|alias 'a|
|00001de0| 70 70 74 2d 64 69 61 72 | 79 2d 65 6e 74 72 69 65 |ppt-diar|y-entrie|
|00001df0| 73 20 23 5b 6e 69 6c 20 | 22 c0 c1 c2 1b 1c 1d c6 |s #[nil |".......|
|00001e00| c7 21 88 0e 08 2b 87 22 | 20 5b 28 61 70 70 74 2d |.!...+."| [(appt-|
|00001e10| 6d 61 6b 65 2d 6c 69 73 | 74 29 20 69 67 6e 6f 72 |make-lis|t) ignor|
|00001e20| 65 20 6e 69 6c 20 64 69 | 61 72 79 2d 6c 69 73 74 |e nil di|ary-list|
|00001e30| 2d 69 6e 63 6c 75 64 65 | 2d 62 6c 61 6e 6b 73 20 |-include|-blanks |
|00001e40| 64 69 61 72 79 2d 64 69 | 73 70 6c 61 79 2d 68 6f |diary-di|splay-ho|
|00001e50| 6f 6b 20 6c 69 73 74 2d | 64 69 61 72 79 2d 65 6e |ok list-|diary-en|
|00001e60| 74 72 69 65 73 2d 68 6f | 6f 6b 20 64 69 61 72 79 |tries-ho|ok diary|
|00001e70| 20 31 20 61 70 70 74 2d | 74 69 6d 65 2d 6d 73 67 | 1 appt-|time-msg|
|00001e80| 2d 6c 69 73 74 5d 20 33 | 20 28 23 24 20 2e 20 37 |-list] 3| (#$ . 7|
|00001e90| 35 38 35 29 5d 29 0a 23 | 40 34 34 33 20 52 65 61 |585)]).#|@443 Rea|
|00001ea0| 64 20 79 6f 75 72 20 60 | 64 69 61 72 79 2d 66 69 |d your `|diary-fi|
|00001eb0| 6c 65 27 20 61 6e 64 20 | 72 65 6d 65 6d 62 65 72 |le' and |remember|
|00001ec0| 20 74 6f 64 61 79 27 73 | 20 61 70 70 6f 69 6e 74 | today's| appoint|
|00001ed0| 6d 65 6e 74 73 2e 20 20 | 43 61 6c 6c 20 74 68 69 |ments. |Call thi|
|00001ee0| 73 20 66 72 6f 6d 20 0a | 20 79 6f 75 72 20 2e 65 |s from .| your .e|
|00001ef0| 6d 61 63 73 20 66 69 6c | 65 2c 20 6f 72 20 61 6e |macs fil|e, or an|
|00001f00| 79 20 74 69 6d 65 20 79 | 6f 75 20 77 61 6e 74 20 |y time y|ou want |
|00001f10| 79 6f 75 72 20 2e 64 69 | 61 72 79 20 66 69 6c 65 |your .di|ary file|
|00001f20| 20 72 65 2d 72 65 61 64 | 20 28 74 68 69 73 20 68 | re-read| (this h|
|00001f30| 61 70 70 65 6e 73 20 0a | 20 61 75 74 6f 6d 61 74 |appens .| automat|
|00001f40| 69 63 61 6c 6c 79 20 61 | 74 20 6d 69 64 6e 69 67 |ically a|t midnig|
|00001f50| 68 74 20 74 6f 20 6e 6f | 74 69 63 65 20 74 68 65 |ht to no|tice the|
|00001f60| 20 6e 65 78 74 20 64 61 | 79 27 73 20 61 70 70 6f | next da|y's appo|
|00001f70| 69 6e 74 6d 65 6e 74 73 | 29 2e 0a 20 0a 20 54 68 |intments|).. . Th|
|00001f80| 65 20 74 69 6d 65 20 6d | 75 73 74 20 62 65 20 61 |e time m|ust be a|
|00001f90| 74 20 74 68 65 20 62 65 | 67 69 6e 6e 69 6e 67 20 |t the be|ginning |
|00001fa0| 6f 66 20 61 20 6c 69 6e | 65 20 66 6f 72 20 69 74 |of a lin|e for it|
|00001fb0| 20 74 6f 20 62 65 20 70 | 75 74 20 69 6e 20 74 68 | to be p|ut in th|
|00001fc0| 65 20 0a 20 61 70 70 6f | 69 6e 74 6d 65 6e 74 73 |e . appo|intments|
|00001fd0| 20 6c 69 73 74 2e 0a 20 | 20 20 20 20 20 20 20 20 | list.. | |
|00001fe0| 20 20 20 20 20 20 30 32 | 2f 32 33 2f 38 39 0a 20 | 02|/23/89. |
|00001ff0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002000| 20 31 32 3a 30 30 70 6d | 20 20 20 20 6c 75 6e 63 | 12:00pm| lunc|
|00002010| 68 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |h. | |
|00002020| 20 20 57 65 64 6e 65 73 | 64 61 79 0a 20 20 20 20 | Wednes|day. |
|00002030| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 31 30 | | 10|
|00002040| 3a 30 30 61 6d 20 20 20 | 20 67 72 6f 75 70 20 6d |:00am | group m|
|00002050| 65 65 74 69 6e 67 1f 0a | 28 64 65 66 61 6c 69 61 |eeting..|(defalia|
|00002060| 73 20 27 61 70 70 74 2d | 69 6e 69 74 69 61 6c 69 |s 'appt-|initiali|
|00002070| 7a 65 20 23 5b 6e 69 6c | 20 22 c0 20 88 c1 20 47 |ze #[nil| ". .. G|
|00002080| 89 1a c3 55 ab 85 c4 c5 | 21 aa 8e 5c 6e c6 55 ab |...U....|!..\n.U.|
|00002090| 85 c4 c7 21 aa 84 c4 c8 | 5c 6e 5c 22 29 87 22 20 |...!....|\n\")." |
|000020a0| 5b 69 6e 73 74 61 6c 6c | 2d 64 69 73 70 6c 61 79 |[install|-display|
|000020b0| 2d 74 69 6d 65 2d 68 6f | 6f 6b 20 61 70 70 74 2d |-time-ho|ok appt-|
|000020c0| 64 69 61 72 79 2d 65 6e | 74 72 69 65 73 20 6e 20 |diary-en|tries n |
|000020d0| 30 20 6d 65 73 73 61 67 | 65 20 22 6e 6f 20 61 70 |0 messag|e "no ap|
|000020e0| 70 6f 69 6e 74 6d 65 6e | 74 73 20 74 6f 64 61 79 |pointmen|ts today|
|000020f0| 2e 22 20 31 20 22 31 20 | 61 70 70 6f 69 6e 74 6d |." 1 "1 |appointm|
|00002100| 65 6e 74 20 74 6f 64 61 | 79 2e 22 20 22 25 64 20 |ent toda|y." "%d |
|00002110| 61 70 70 6f 69 6e 74 6d | 65 6e 74 73 20 74 6f 64 |appointm|ents tod|
|00002120| 61 79 2e 22 5d 20 34 20 | 28 23 24 20 2e 20 37 38 |ay."] 4 |(#$ . 78|
|00002130| 33 37 29 5d 29 0a 23 40 | 37 31 20 44 6f 6e 27 74 |37)]).#@|71 Don't|
|00002140| 20 63 61 6c 6c 20 74 68 | 69 73 20 64 69 72 65 63 | call th|is direc|
|00002150| 74 6c 79 3b 20 63 61 6c | 6c 20 61 70 70 74 2d 69 |tly; cal|l appt-i|
|00002160| 6e 69 74 69 61 6c 69 7a | 65 20 6f 72 20 61 70 70 |nitializ|e or app|
|00002170| 74 2d 64 69 61 72 79 2d | 65 6e 74 72 69 65 73 2e |t-diary-|entries.|
|00002180| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 61 70 70 |..(defal|ias 'app|
|00002190| 74 2d 6d 61 6b 65 2d 6c | 69 73 74 20 23 5b 6e 69 |t-make-l|ist #[ni|
|000021a0| 6c 20 22 c0 11 5c 6e 83 | 8d 00 5c 6e c0 1b 89 1c |l "..\n.|..\n....|
|000021b0| ab f9 c5 c6 20 0c 40 40 | 5c 22 ab f0 0c 40 41 40 |.... .@@|\"...@A@|
|000021c0| 1e 07 c8 c9 0e 07 5c 22 | ab b5 ca 95 1e 0b 0e 07 |......\"|........|
|000021d0| cc 94 cc 95 4f 1e 0d 0e | 07 cc 95 0e 0b 4f 1e 0e |....O...|.....O..|
|000021e0| cf 0e 0d 21 43 1e 10 0e | 07 0e 0b c0 4f 16 07 0e |...!C...|....O...|
|000021f0| 10 0e 0d d1 0e 0e 51 43 | 42 0b 42 13 2c aa 44 0e |......QC|B.B.,.D.|
|00002200| 12 ab a3 c8 d3 0e 07 5c | 22 ab 9c d4 20 88 d5 d6 |.......\|"... ...|
|00002210| 0e 07 cc 94 cc 95 4f 5c | 22 88 d7 d8 21 88 0e 07 |......O\|"...!...|
|00002220| ca 95 c0 4f 16 07 aa 5d | 29 0c 41 89 14 ac 07 d9 |...O...]|).A.....|
|00002230| 0b 9f 09 5c 22 11 2a da | 09 21 11 db 20 09 40 40 |...\".*.|.!.. .@@|
|00002240| 40 1e 1c 1e 1d 09 ab 95 | 0e 1c 0e 1d 57 ab 8e 09 |@.......|....W...|
|00002250| 41 89 11 ab 70 09 40 40 | 40 16 1c aa 68 2a 09 87 |A...p.@@|@...h*..|
|00002260| 22 20 5b 6e 69 6c 20 61 | 70 70 74 2d 74 69 6d 65 |" [nil a|ppt-time|
|00002270| 2d 6d 73 67 2d 6c 69 73 | 74 20 64 69 61 72 79 2d |-msg-lis|t diary-|
|00002280| 65 6e 74 72 69 65 73 2d | 6c 69 73 74 20 6e 65 77 |entries-|list new|
|00002290| 2d 61 70 70 74 73 20 65 | 6e 74 72 79 2d 6c 69 73 |-appts e|ntry-lis|
|000022a0| 74 20 63 61 6c 65 6e 64 | 61 72 2d 64 61 74 65 2d |t calend|ar-date-|
|000022b0| 65 71 75 61 6c 20 63 61 | 6c 65 6e 64 61 72 2d 63 |equal ca|lendar-c|
|000022c0| 75 72 72 65 6e 74 2d 64 | 61 74 65 20 74 69 6d 65 |urrent-d|ate time|
|000022d0| 2d 73 74 72 69 6e 67 20 | 73 74 72 69 6e 67 2d 6d |-string |string-m|
|000022e0| 61 74 63 68 20 22 5c 5c | 60 5b 20 09 5c 6e 5d 2a |atch "\\|`[ .\n]*|
|000022f0| 5c 5c 28 5b 30 2d 39 5d | 3f 5b 30 2d 39 5d 5c 5c |\\([0-9]|?[0-9]\\|
|00002300| 28 3a 5b 30 2d 39 5d 5b | 30 2d 39 5d 5c 5c 29 3f |(:[0-9][|0-9]\\)?|
|00002310| 5b 20 09 5d 2a 5c 5c 28 | 61 6d 5c 5c 7c 70 6d 5c |[ .]*\\(|am\\|pm\|
|00002320| 5c 29 3f 5c 5c 7c 6e 6f | 6f 6e 5c 5c 7c 6d 69 64 |\)?\\|no|on\\|mid|
|00002330| 6e 69 67 68 74 5c 5c 7c | 6d 69 64 6e 69 74 65 5c |night\\||midnite\|
|00002340| 5c 29 2e 2a 24 22 20 30 | 20 65 6f 6c 20 31 20 61 |\).*$" 0| eol 1 a|
|00002350| 70 70 74 2d 74 69 6d 65 | 2d 73 74 72 69 6e 67 20 |ppt-time|-string |
|00002360| 61 70 70 74 2d 6d 73 67 | 2d 73 74 72 69 6e 67 20 |appt-msg|-string |
|00002370| 61 70 70 74 2d 63 6f 6e | 76 65 72 74 2d 74 69 6d |appt-con|vert-tim|
|00002380| 65 20 61 70 70 74 2d 74 | 69 6d 65 20 22 3a 22 20 |e appt-t|ime ":" |
|00002390| 61 70 70 74 2d 63 68 65 | 63 6b 2d 74 69 6d 65 2d |appt-che|ck-time-|
|000023a0| 73 79 6e 74 61 78 20 22 | 5c 6e 2a 5c 5c 28 5b 5e |syntax "|\n*\\([^|
|000023b0| 5c 6e 5d 2b 5c 5c 29 24 | 22 20 62 65 65 70 20 6d |\n]+\\)$|" beep m|
|000023c0| 65 73 73 61 67 65 20 22 | 55 6e 70 61 72 73 61 62 |essage "|Unparsab|
|000023d0| 6c 65 20 74 69 6d 65 3a | 20 25 73 22 20 73 69 74 |le time:| %s" sit|
|000023e0| 2d 66 6f 72 20 33 20 61 | 70 70 65 6e 64 20 61 70 |-for 3 a|ppend ap|
|000023f0| 70 74 2d 73 6f 72 74 2d | 6c 69 73 74 20 61 70 70 |pt-sort-|list app|
|00002400| 74 2d 63 75 72 72 65 6e | 74 2d 74 69 6d 65 2d 69 |t-curren|t-time-i|
|00002410| 6e 2d 6d 69 6e 75 74 65 | 73 20 61 70 70 74 2d 63 |n-minute|s appt-c|
|00002420| 6f 6d 70 2d 74 69 6d 65 | 20 63 75 72 2d 63 6f 6d |omp-time| cur-com|
|00002430| 70 2d 74 69 6d 65 5d 20 | 36 20 28 23 24 20 2e 20 |p-time] |6 (#$ . |
|00002440| 38 35 30 37 29 5d 29 0a | 28 64 65 66 61 6c 69 61 |8507)]).|(defalia|
|00002450| 73 20 27 61 70 70 74 2d | 62 65 65 70 20 23 5b 28 |s 'appt-|beep #[(|
|00002460| 26 6f 70 74 69 6f 6e 61 | 6c 20 66 69 6e 61 6c 2d |&optiona|l final-|
|00002470| 70 29 20 22 08 ac 82 c1 | 87 08 a7 ab 92 08 89 1a |p) "....|........|
|00002480| c3 56 ad 89 c4 20 88 5c | 6e 53 89 12 aa 73 29 87 |.V... .\|nS...s).|
|00002490| 08 3a ab b4 08 40 08 41 | 1d 1a 0d 3a ab 83 0d 40 |.:...@.A|...:...@|
|000024a0| 15 5c 6e c3 56 ad a0 c6 | c7 21 ab 8e c4 c1 0e 08 |.\n.V...|.!......|
|000024b0| ab 83 c9 aa 81 ca 5c 22 | 88 aa 83 c4 20 88 cb 0d |......\"|.... ...|
|000024c0| 21 88 5c 6e 53 89 12 aa | 5c 5c 2a 87 c4 20 87 22 |!.\nS...|\\*.. ."|
|000024d0| 20 5b 61 70 70 74 2d 61 | 75 64 69 62 6c 65 20 6e | [appt-a|udible n|
|000024e0| 69 6c 20 69 20 30 20 62 | 65 65 70 20 6a 20 66 62 |il i 0 b|eep j fb|
|000024f0| 6f 75 6e 64 70 20 70 6c | 61 79 2d 73 6f 75 6e 64 |oundp pl|ay-sound|
|00002500| 20 66 69 6e 61 6c 2d 70 | 20 61 70 70 74 2d 66 69 | final-p| appt-fi|
|00002510| 6e 61 6c 20 61 70 70 74 | 20 73 6c 65 65 70 2d 66 |nal appt| sleep-f|
|00002520| 6f 72 5d 20 34 5d 29 0a | 23 40 31 33 31 33 20 43 |or] 4]).|#@1313 C|
|00002530| 68 65 63 6b 20 66 6f 72 | 20 61 6e 20 61 70 70 6f |heck for| an appo|
|00002540| 69 6e 74 6d 65 6e 74 20 | 61 6e 64 20 75 70 64 61 |intment |and upda|
|00002550| 74 65 20 74 68 65 20 6d | 6f 64 65 20 6c 69 6e 65 |te the m|ode line|
|00002560| 20 61 6e 64 20 6d 69 6e | 69 62 75 66 66 65 72 20 | and min|ibuffer |
|00002570| 69 66 0a 20 64 65 73 69 | 72 65 64 2e 20 4e 6f 74 |if. desi|red. Not|
|00002580| 65 3a 20 74 68 65 20 74 | 69 6d 65 20 6d 75 73 74 |e: the t|ime must|
|00002590| 20 62 65 20 74 68 65 20 | 66 69 72 73 74 20 74 68 | be the |first th|
|000025a0| 69 6e 67 20 69 6e 20 74 | 68 65 20 6c 69 6e 65 20 |ing in t|he line |
|000025b0| 69 6e 20 74 68 65 20 64 | 69 61 72 79 0a 20 66 6f |in the d|iary. fo|
|000025c0| 72 20 61 20 77 61 72 6e | 69 6e 67 20 74 6f 20 62 |r a warn|ing to b|
|000025d0| 65 20 69 73 73 75 65 64 | 2e 0a 20 20 54 68 65 20 |e issued|.. The |
|000025e0| 66 6f 72 6d 61 74 20 6f | 66 20 74 68 65 20 74 69 |format o|f the ti|
|000025f0| 6d 65 20 63 61 6e 20 62 | 65 20 65 69 74 68 65 72 |me can b|e either|
|00002600| 20 32 34 20 68 6f 75 72 | 20 6f 72 20 61 6d 2f 70 | 24 hour| or am/p|
|00002610| 6d 2e 20 20 45 78 61 6d | 70 6c 65 3a 20 0a 20 0a |m. Exam|ple: . .|
|00002620| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 30 | | 0|
|00002630| 32 2f 32 33 2f 38 39 0a | 20 20 20 20 20 20 20 20 |2/23/89.| |
|00002640| 20 20 20 20 20 20 20 20 | 20 31 38 3a 30 30 20 44 | | 18:00 D|
|00002650| 69 6e 6e 65 72 0a 20 20 | 20 20 20 20 20 20 20 20 |inner. | |
|00002660| 20 20 20 20 54 68 75 72 | 73 64 61 79 0a 20 20 20 | Thur|sday. |
|00002670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 31 3a | | 11:|
|00002680| 34 35 61 6d 20 4c 75 6e | 63 68 20 6d 65 65 74 69 |45am Lun|ch meeti|
|00002690| 6e 67 2e 0a 20 20 0a 20 | 54 68 65 20 66 6f 6c 6c |ng.. . |The foll|
|000026a0| 6f 77 69 6e 67 20 76 61 | 72 69 61 62 6c 65 73 20 |owing va|riables |
|000026b0| 63 6f 6e 74 72 6f 6c 20 | 74 68 65 20 61 63 74 69 |control |the acti|
|000026c0| 6f 6e 20 6f 66 20 74 68 | 65 20 6e 6f 74 69 66 69 |on of th|e notifi|
|000026d0| 63 61 74 69 6f 6e 3a 0a | 20 0a 20 61 70 70 74 2d |cation:.| . appt-|
|000026e0| 69 73 73 75 65 2d 6d 65 | 73 73 61 67 65 09 09 49 |issue-me|ssage..I|
|000026f0| 66 20 74 68 69 73 20 76 | 61 72 69 61 62 6c 65 20 |f this v|ariable |
|00002700| 69 73 20 6e 69 6c 2c 20 | 74 68 65 6e 20 74 68 65 |is nil, |then the|
|00002710| 20 63 6f 64 65 20 69 6e | 20 74 68 69 73 0a 09 09 | code in| this...|
|00002720| 09 09 66 69 6c 65 20 64 | 6f 65 73 20 6e 6f 74 68 |..file d|oes noth|
|00002730| 69 6e 67 2e 0a 20 61 70 | 70 74 2d 6d 73 67 2d 63 |ing.. ap|pt-msg-c|
|00002740| 6f 75 6e 74 64 6f 77 6e | 2d 6c 69 73 74 09 53 70 |ountdown|-list.Sp|
|00002750| 65 63 69 66 69 65 73 20 | 68 6f 77 20 6d 75 63 68 |ecifies |how much|
|00002760| 20 77 61 72 6e 69 6e 67 | 20 79 6f 75 20 77 61 6e | warning| you wan|
|00002770| 74 20 62 65 66 6f 72 65 | 20 0a 09 09 09 09 61 70 |t before| .....ap|
|00002780| 70 6f 69 6e 74 6d 65 6e | 74 73 2e 0a 20 61 70 70 |pointmen|ts.. app|
|00002790| 74 2d 61 75 64 69 62 6c | 65 09 09 09 57 68 65 74 |t-audibl|e...Whet|
|000027a0| 68 65 72 20 74 6f 20 62 | 65 65 70 20 77 68 65 6e |her to b|eep when|
|000027b0| 20 69 74 27 73 20 6e 6f | 74 69 66 69 63 61 74 69 | it's no|tificati|
|000027c0| 6f 6e 2d 74 69 6d 65 2e | 0a 20 61 70 70 74 2d 64 |on-time.|. appt-d|
|000027d0| 69 73 70 6c 61 79 2d 6d | 6f 64 65 2d 6c 69 6e 65 |isplay-m|ode-line|
|000027e0| 09 09 57 68 65 74 68 65 | 72 20 74 6f 20 64 69 73 |..Whethe|r to dis|
|000027f0| 70 6c 61 79 20 61 20 63 | 6f 75 6e 74 64 6f 77 6e |play a c|ountdown|
|00002800| 20 74 6f 20 74 68 65 20 | 6e 65 78 74 20 0a 09 09 | to the |next ...|
|00002810| 09 09 61 70 70 6f 69 6e | 74 6d 65 6e 74 20 69 6e |..appoin|tment in|
|00002820| 20 74 68 65 20 6d 6f 64 | 65 2d 6c 69 6e 65 2e 0a | the mod|e-line..|
|00002830| 20 61 70 70 74 2d 61 6e | 6e 6f 75 6e 63 65 2d 6d | appt-an|nounce-m|
|00002840| 65 74 68 6f 64 20 20 20 | 09 54 68 65 20 66 75 6e |ethod |.The fun|
|00002850| 63 74 69 6f 6e 20 75 73 | 65 64 20 74 6f 20 64 6f |ction us|ed to do|
|00002860| 20 74 68 65 20 6e 6f 74 | 69 66 69 63 61 74 69 6f | the not|ificatio|
|00002870| 6e 73 2e 0a 09 09 09 09 | 27 61 70 70 74 2d 77 69 |ns......|'appt-wi|
|00002880| 6e 64 6f 77 2d 61 6e 6e | 6f 75 6e 63 65 20 74 6f |ndow-ann|ounce to|
|00002890| 20 64 6f 20 69 74 20 69 | 6e 20 61 20 70 6f 70 2d | do it i|n a pop-|
|000028a0| 75 70 0a 09 09 09 09 77 | 69 6e 64 6f 77 2c 20 27 |up.....w|indow, '|
|000028b0| 61 70 70 74 2d 6d 65 73 | 73 61 67 65 2d 61 6e 6e |appt-mes|sage-ann|
|000028c0| 6f 75 6e 63 65 20 6f 72 | 20 0a 09 09 09 09 27 61 |ounce or| .....'a|
|000028d0| 70 70 74 2d 70 65 72 73 | 69 73 74 65 6e 74 2d 6d |ppt-pers|istent-m|
|000028e0| 65 73 73 61 67 65 2d 61 | 6e 6e 6f 75 6e 63 65 20 |essage-a|nnounce |
|000028f0| 74 6f 20 64 6f 20 69 74 | 20 0a 09 09 09 09 69 6e |to do it| .....in|
|00002900| 20 74 68 65 20 65 63 68 | 6f 2d 61 72 65 61 2e 0a | the ech|o-area..|
|00002910| 20 61 70 70 74 2d 64 69 | 73 70 6c 61 79 2d 64 75 | appt-di|splay-du|
|00002920| 72 61 74 69 6f 6e 20 20 | 09 49 66 20 61 70 70 74 |ration |.If appt|
|00002930| 2d 61 6e 6e 6f 75 6e 63 | 65 2d 6d 65 74 68 6f 64 |-announc|e-method|
|00002940| 20 69 73 20 73 65 74 20 | 74 6f 20 74 68 65 20 66 | is set |to the f|
|00002950| 75 6e 63 74 69 6f 6e 0a | 09 09 09 09 27 61 70 70 |unction.|....'app|
|00002960| 74 2d 77 69 6e 64 6f 77 | 2d 61 6e 6e 6f 75 6e 63 |t-window|-announc|
|00002970| 65 2c 20 74 68 69 73 20 | 73 70 65 63 69 66 69 65 |e, this |specifie|
|00002980| 73 20 68 6f 77 20 6d 61 | 6e 79 0a 09 09 09 09 73 |s how ma|ny.....s|
|00002990| 65 63 6f 6e 64 73 20 74 | 68 65 20 70 6f 70 2d 75 |econds t|he pop-u|
|000029a0| 70 20 77 69 6e 64 6f 77 | 20 73 68 6f 75 6c 64 20 |p window| should |
|000029b0| 73 74 69 63 6b 20 61 72 | 6f 75 6e 64 2e 0a 20 0a |stick ar|ound.. .|
|000029c0| 20 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 69 | This fu|nction i|
|000029d0| 73 20 72 75 6e 20 66 72 | 6f 6d 20 74 68 65 20 60 |s run fr|om the `|
|000029e0| 6c 6f 61 64 73 74 27 20 | 6f 72 20 60 77 61 6b 65 |loadst' |or `wake|
|000029f0| 75 70 27 20 70 72 6f 63 | 65 73 73 20 66 6f 72 20 |up' proc|ess for |
|00002a00| 64 69 73 70 6c 61 79 2d | 74 69 6d 65 2e 0a 20 54 |display-|time.. T|
|00002a10| 68 65 72 65 66 6f 72 65 | 2c 20 79 6f 75 20 6e 65 |herefore|, you ne|
|00002a20| 65 64 20 74 6f 20 68 61 | 76 65 20 28 64 69 73 70 |ed to ha|ve (disp|
|00002a30| 6c 61 79 2d 74 69 6d 65 | 29 20 69 6e 20 79 6f 75 |lay-time|) in you|
|00002a40| 72 20 2e 65 6d 61 63 73 | 20 66 69 6c 65 2e 1f 0a |r .emacs| file...|
|00002a50| 28 64 65 66 61 6c 69 61 | 73 20 27 61 70 70 74 2d |(defalia|s 'appt-|
|00002a60| 63 68 65 63 6b 20 23 5b | 6e 69 6c 20 22 08 85 e6 |check #[|nil "...|
|00002a70| 00 c1 1a c3 20 89 1c 0d | 55 1e 06 0d 0c 56 1e 07 |.... ...|U....V..|
|00002a80| 0c 15 0e 07 ab 84 c8 c9 | 21 88 0e 5c 6e 83 e2 00 |........|!..\n...|
|00002a90| 0e 5c 6e 40 40 40 89 1e | 0b 0c 5a 12 0e 5c 6e ab |.\n@@@..|..Z..\n.|
|00002aa0| 97 0e 0b 0c 57 ab 91 0e | 5c 6e 41 89 16 5c 6e ab |....W...|\nA..\n.|
|00002ab0| 6e 0e 5c 6e 40 40 40 16 | 0b aa 65 0e 0b cc cd 0e |n.\n@@@.|..e.....|
|00002ac0| 0e 5c 22 57 ab 95 0c cc | cd 0e 0e 5c 22 5c 5c 0e |.\"W....|...\"\\.|
|00002ad0| 0f 56 ab 89 0e 0f 54 0c | 5a 12 d0 16 0b 5c 6e cc |.V....T.|Z....\n.|
|00002ae0| cd 0e 0e 5c 22 56 ab 85 | d1 d0 21 aa ea 0e 06 ac |...\"V..|..!.....|
|00002af0| 8b 5c 6e d2 55 ac 89 5c | 6e 0e 0e 73 ac 83 d0 aa |.\n.U..\|n..s....|
|00002b00| d8 5c 6e d2 55 ab a3 d3 | d4 0e 5c 6e 40 41 40 5c |.\n.U...|..\n@A@\|
|00002b10| 22 ab 99 0e 5c 6e 40 41 | 40 d2 95 53 d0 4f 1e 15 |"...\n@A|@..S.O..|
|00002b20| d0 d6 d7 8f 1e 18 d9 0e | 18 21 2a aa b0 5c 6e cc |........|.!*..\n.|
|00002b30| cd 0e 0e 5c 22 58 ab a4 | 5c 6e d2 59 ab 9f da 5c |...\"X..|\n.Y...\|
|00002b40| 6e d2 55 21 88 0e 1b 5c | 6e 0e 5c 6e 40 5c 22 88 |n.U!...\|n.\n@\".|
|00002b50| d1 5c 6e 21 88 5c 6e d2 | 55 ad 8b 0e 5c 6e 41 89 |.\n!.\n.|U...\nA.|
|00002b60| 16 5c 6e aa 83 d1 d0 21 | 29 aa 83 d1 d0 21 2c 87 |.\n....!|)....!,.|
|00002b70| 22 20 5b 61 70 70 74 2d | 69 73 73 75 65 2d 6d 65 |" [appt-|issue-me|
|00002b80| 73 73 61 67 65 20 2d 31 | 20 6d 69 6e 2d 74 6f 2d |ssage -1| min-to-|
|00002b90| 61 70 70 20 61 70 70 74 | 2d 63 75 72 72 65 6e 74 |app appt|-current|
|00002ba0| 2d 74 69 6d 65 2d 69 6e | 2d 6d 69 6e 75 74 65 73 |-time-in|-minutes|
|00002bb0| 20 63 75 72 2d 63 6f 6d | 70 2d 74 69 6d 65 20 61 | cur-com|p-time a|
|00002bc0| 70 70 74 2d 63 68 65 63 | 6b 2d 74 69 63 6b 20 73 |ppt-chec|k-tick s|
|00002bd0| 68 75 74 2d 75 70 2d 74 | 68 69 73 2d 74 69 6d 65 |hut-up-t|his-time|
|00002be0| 20 74 75 72 6e 6f 76 65 | 72 2d 70 20 64 69 61 72 | turnove|r-p diar|
|00002bf0| 79 20 31 20 61 70 70 74 | 2d 74 69 6d 65 2d 6d 73 |y 1 appt|-time-ms|
|00002c00| 67 2d 6c 69 73 74 20 61 | 70 70 74 2d 63 6f 6d 70 |g-list a|ppt-comp|
|00002c10| 2d 74 69 6d 65 20 61 70 | 70 6c 79 20 6d 61 78 20 |-time ap|ply max |
|00002c20| 61 70 70 74 2d 6d 73 67 | 2d 63 6f 75 6e 74 64 6f |appt-msg|-countdo|
|00002c30| 77 6e 2d 6c 69 73 74 20 | 6d 61 78 2d 74 69 6d 65 |wn-list |max-time|
|00002c40| 20 6e 69 6c 20 61 70 70 | 74 2d 64 69 73 70 6c 61 | nil app|t-displa|
|00002c50| 79 2d 6d 6f 64 65 2d 6c | 69 6e 65 20 30 20 73 74 |y-mode-l|ine 0 st|
|00002c60| 72 69 6e 67 2d 6d 61 74 | 63 68 20 22 25 25 28 22 |ring-mat|ch "%%("|
|00002c70| 20 6c 69 73 74 2d 73 74 | 72 69 6e 67 20 28 72 65 | list-st|ring (re|
|00002c80| 61 64 20 6c 69 73 74 2d | 73 74 72 69 6e 67 29 20 |ad list-|string) |
|00002c90| 28 28 65 72 72 6f 72 20 | 28 62 79 74 65 2d 63 6f |((error |(byte-co|
|00002ca0| 64 65 20 22 c0 20 88 c1 | c2 0b 40 41 40 5c 22 88 |de ". ..|..@A@\".|
|00002cb0| c4 c5 21 88 c6 87 22 20 | 5b 64 69 6e 67 20 6d 65 |..!..." |[ding me|
|00002cc0| 73 73 61 67 65 20 22 41 | 70 70 74 3a 20 65 72 72 |ssage "A|ppt: err|
|00002cd0| 6f 72 20 72 65 61 64 69 | 6e 67 20 66 72 6f 6d 20 |or readi|ng from |
|00002ce0| 5c 22 25 73 5c 22 22 20 | 61 70 70 74 2d 74 69 6d |\"%s\"" |appt-tim|
|00002cf0| 65 2d 6d 73 67 2d 6c 69 | 73 74 20 73 69 74 2d 66 |e-msg-li|st sit-f|
|00002d00| 6f 72 20 32 20 6e 69 6c | 5d 20 33 29 29 29 20 66 |or 2 nil|] 3))) f|
|00002d10| 6f 72 6d 20 65 76 61 6c | 20 61 70 70 74 2d 62 65 |orm eval| appt-be|
|00002d20| 65 70 20 61 70 70 74 2d | 61 6e 6e 6f 75 6e 63 65 |ep appt-|announce|
|00002d30| 2d 6d 65 74 68 6f 64 5d | 20 35 20 28 23 24 20 2e |-method]| 5 (#$ .|
|00002d40| 20 39 35 31 39 29 5d 29 | 0a 23 40 31 35 32 20 41 | 9519)])|.#@152 A|
|00002d50| 64 64 73 20 61 6e 20 61 | 70 70 6f 69 6e 74 6d 65 |dds an a|ppointme|
|00002d60| 6e 74 20 74 6f 20 74 68 | 65 20 6c 69 73 74 20 6f |nt to th|e list o|
|00002d70| 66 20 61 70 70 6f 69 6e | 74 6d 65 6e 74 73 20 66 |f appoin|tments f|
|00002d80| 6f 72 20 74 68 65 20 64 | 61 79 20 61 74 20 54 49 |or the d|ay at TI|
|00002d90| 4d 45 0a 20 61 6e 64 20 | 69 73 73 75 65 20 4d 45 |ME. and |issue ME|
|00002da0| 53 53 41 47 45 2e 20 54 | 68 65 20 74 69 6d 65 20 |SSAGE. T|he time |
|00002db0| 73 68 6f 75 6c 64 20 62 | 65 20 69 6e 20 65 69 74 |should b|e in eit|
|00002dc0| 68 65 72 20 32 34 20 68 | 6f 75 72 20 66 6f 72 6d |her 24 h|our form|
|00002dd0| 61 74 20 6f 72 0a 20 61 | 6d 2f 70 6d 20 66 6f 72 |at or. a|m/pm for|
|00002de0| 6d 61 74 2e 20 1f 0a 28 | 64 65 66 61 6c 69 61 73 |mat. ..(|defalias|
|00002df0| 20 27 61 70 70 74 2d 61 | 64 64 20 23 5b 28 6e 65 | 'appt-a|dd #[(ne|
|00002e00| 77 2d 61 70 70 74 2d 74 | 69 6d 65 20 6e 65 77 2d |w-appt-t|ime new-|
|00002e10| 61 70 70 74 2d 6d 73 67 | 29 20 22 c0 c1 5c 6e 5c |appt-msg|) "..\n\|
|00002e20| 22 ac 84 c3 c4 21 88 5c | 6e c5 0e 06 51 1e 07 c8 |"....!.\|n...Q...|
|00002e30| 5c 6e 21 43 89 1e 09 0e | 07 43 42 1e 5c 6e cb 0e |\n!C....|.CB.\n..|
|00002e40| 0c 0e 5c 6e 43 5c 22 16 | 0c cd 0e 0c 21 89 16 0c |..\nC\".|....!...|
|00002e50| 2b 87 22 20 5b 73 74 72 | 69 6e 67 2d 6d 61 74 63 |+." [str|ing-matc|
|00002e60| 68 20 22 5b 30 2d 39 5d | 3f 5b 30 2d 39 5d 3a 5b |h "[0-9]|?[0-9]:[|
|00002e70| 30 2d 39 5d 5b 30 2d 39 | 5d 5c 5c 28 61 6d 5c 5c |0-9][0-9|]\\(am\\|
|00002e80| 7c 70 6d 5c 5c 29 3f 22 | 20 6e 65 77 2d 61 70 70 ||pm\\)?"| new-app|
|00002e90| 74 2d 74 69 6d 65 20 65 | 72 72 6f 72 20 22 55 6e |t-time e|rror "Un|
|00002ea0| 61 63 63 65 70 74 61 62 | 6c 65 20 74 69 6d 65 2d |acceptab|le time-|
|00002eb0| 73 74 72 69 6e 67 22 20 | 22 20 22 20 6e 65 77 2d |string" |" " new-|
|00002ec0| 61 70 70 74 2d 6d 73 67 | 20 61 70 70 74 2d 74 69 |appt-msg| appt-ti|
|00002ed0| 6d 65 2d 73 74 72 69 6e | 67 20 61 70 70 74 2d 63 |me-strin|g appt-c|
|00002ee0| 6f 6e 76 65 72 74 2d 74 | 69 6d 65 20 61 70 70 74 |onvert-t|ime appt|
|00002ef0| 2d 74 69 6d 65 20 74 69 | 6d 65 2d 6d 73 67 20 61 |-time ti|me-msg a|
|00002f00| 70 70 65 6e 64 20 61 70 | 70 74 2d 74 69 6d 65 2d |ppend ap|pt-time-|
|00002f10| 6d 73 67 2d 6c 69 73 74 | 20 61 70 70 74 2d 73 6f |msg-list| appt-so|
|00002f20| 72 74 2d 6c 69 73 74 5d | 20 34 20 28 23 24 20 2e |rt-list]| 4 (#$ .|
|00002f30| 20 31 31 35 39 39 29 20 | 22 73 54 69 6d 65 20 28 | 11599) |"sTime (|
|00002f40| 68 68 3a 6d 6d 5b 61 6d | 2f 70 6d 5d 29 3a 20 5c |hh:mm[am|/pm]): \|
|00002f50| 6e 73 4d 65 73 73 61 67 | 65 3a 20 22 5d 29 0a 23 |nsMessag|e: "]).#|
|00002f60| 40 35 35 20 44 65 6c 65 | 74 65 73 20 61 6e 20 61 |@55 Dele|tes an a|
|00002f70| 70 70 6f 69 6e 74 6d 65 | 6e 74 20 66 72 6f 6d 20 |ppointme|nt from |
|00002f80| 74 68 65 20 6c 69 73 74 | 20 6f 66 20 61 70 70 6f |the list| of appo|
|00002f90| 69 6e 74 6d 65 6e 74 73 | 2e 1f 0a 28 64 65 66 61 |intments|...(defa|
|00002fa0| 6c 69 61 73 20 27 61 70 | 70 74 2d 64 65 6c 65 74 |lias 'ap|pt-delet|
|00002fb0| 65 20 23 5b 6e 69 6c 20 | 22 08 19 09 ab a2 09 40 |e #[nil |"......@|
|00002fc0| 1a c3 c4 5c 6e 41 40 21 | c5 51 1e 06 c7 0e 06 21 |...\nA@!|.Q.....!|
|00002fd0| 1e 08 09 41 11 0e 08 ab | 85 c9 5c 6e 08 5c 22 10 |...A....|..\n.\".|
|00002fe0| 2b aa 5b ca cb 21 29 87 | 22 20 5b 61 70 70 74 2d |+.[..!).|" [appt-|
|00002ff0| 74 69 6d 65 2d 6d 73 67 | 2d 6c 69 73 74 20 74 6d |time-msg|-list tm|
|00003000| 70 2d 6d 73 67 2d 6c 69 | 73 74 20 65 6c 65 6d 65 |p-msg-li|st eleme|
|00003010| 6e 74 20 22 44 65 6c 65 | 74 65 20 22 20 70 72 69 |nt "Dele|te " pri|
|00003020| 6e 31 2d 74 6f 2d 73 74 | 72 69 6e 67 20 22 20 66 |n1-to-st|ring " f|
|00003030| 72 6f 6d 20 6c 69 73 74 | 3f 20 22 20 70 72 6f 6d |rom list|? " prom|
|00003040| 70 74 2d 73 74 72 69 6e | 67 20 79 2d 6f 72 2d 6e |pt-strin|g y-or-n|
|00003050| 2d 70 20 74 65 73 74 2d | 69 6e 70 75 74 20 64 65 |-p test-|input de|
|00003060| 6c 71 20 6d 65 73 73 61 | 67 65 20 22 22 5d 20 33 |lq messa|ge ""] 3|
|00003070| 20 28 23 24 20 2e 20 31 | 32 31 33 32 29 20 6e 69 | (#$ . 1|2132) ni|
|00003080| 6c 5d 29 0a 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |l]).(byt|e-code "|
|00003090| c0 c1 21 ac 82 c2 11 c1 | 0b 42 13 c2 87 22 20 5b |..!.....|.B..." [|
|000030a0| 62 6f 75 6e 64 70 20 64 | 69 73 70 6c 61 79 2d 74 |boundp d|isplay-t|
|000030b0| 69 6d 65 2d 68 6f 6f 6b | 2d 69 6e 73 74 61 6c 6c |ime-hook|-install|
|000030c0| 65 64 20 6e 69 6c 20 63 | 75 72 72 65 6e 74 2d 6c |ed nil c|urrent-l|
|000030d0| 6f 61 64 2d 6c 69 73 74 | 5d 20 32 29 0a 28 64 65 |oad-list|] 2).(de|
|000030e0| 66 61 6c 69 61 73 20 27 | 69 6e 73 74 61 6c 6c 2d |falias '|install-|
|000030f0| 64 69 73 70 6c 61 79 2d | 74 69 6d 65 2d 68 6f 6f |display-|time-hoo|
|00003100| 6b 20 23 5b 6e 69 6c 20 | 22 08 3f ad ed c1 c2 21 |k #[nil |".?....!|
|00003110| ac d6 c1 c2 21 ac 82 c3 | 12 c2 0c 42 14 c5 c2 c6 |....!...|...B....|
|00003120| c7 23 88 c8 c9 21 ac 8a | ca cb 21 ab 9f ca cc 21 |.#...!..|..!....!|
|00003130| ab 9a c8 cd 21 ab 88 ca | ce 21 ab 83 ce aa 9b cf |....!...|.!......|
|00003140| d0 d1 20 5c 22 ab 83 cb | aa 91 cc aa 8e c8 cd 21 |.. \"...|.......!|
|00003150| ab 88 ca d2 21 ab 83 d2 | aa 81 d3 1e 14 d5 0e 14 |....!...|........|
|00003160| 4b 4d 88 0e 14 d6 4d 88 | 29 d7 10 ca d8 21 ab 85 |KM....M.|)....!..|
|00003170| d8 c2 d9 5c 22 87 0e 19 | 5c 6e 42 89 12 87 22 20 |...\"...|\nB..." |
|00003180| 5b 64 69 73 70 6c 61 79 | 2d 74 69 6d 65 2d 68 6f |[display|-time-ho|
|00003190| 6f 6b 2d 69 6e 73 74 61 | 6c 6c 65 64 20 62 6f 75 |ok-insta|lled bou|
|000031a0| 6e 64 70 20 64 69 73 70 | 6c 61 79 2d 74 69 6d 65 |ndp disp|lay-time|
|000031b0| 2d 68 6f 6f 6b 20 6e 69 | 6c 20 63 75 72 72 65 6e |-hook ni|l curren|
|000031c0| 74 2d 6c 6f 61 64 2d 6c | 69 73 74 20 70 75 74 20 |t-load-l|ist put |
|000031d0| 76 61 72 69 61 62 6c 65 | 2d 64 6f 63 75 6d 65 6e |variable|-documen|
|000031e0| 74 61 74 69 6f 6e 20 22 | 2a 4c 69 73 74 20 6f 66 |tation "|*List of|
|000031f0| 20 66 75 6e 63 74 69 6f | 6e 73 20 74 6f 20 62 65 | functio|ns to be|
|00003200| 20 63 61 6c 6c 65 64 20 | 77 68 65 6e 20 74 68 65 | called |when the|
|00003210| 20 74 69 6d 65 20 69 73 | 20 75 70 64 61 74 65 64 | time is| updated|
|00003220| 20 6f 6e 20 74 68 65 20 | 6d 6f 64 65 20 6c 69 6e | on the |mode lin|
|00003230| 65 2e 22 20 66 65 61 74 | 75 72 65 70 20 72 65 70 |e." feat|urep rep|
|00003240| 6f 72 74 6d 61 69 6c 20 | 66 62 6f 75 6e 64 70 20 |ortmail |fboundp |
|00003250| 64 69 73 70 6c 61 79 2d | 74 69 6d 65 2d 66 69 6c |display-|time-fil|
|00003260| 74 65 72 2d 31 38 2d 35 | 35 20 64 69 73 70 6c 61 |ter-18-5|5 displa|
|00003270| 79 2d 74 69 6d 65 2d 66 | 69 6c 74 65 72 2d 31 38 |y-time-f|ilter-18|
|00003280| 2d 35 37 20 69 74 69 6d | 65 72 20 64 69 73 70 6c |-57 itim|er displ|
|00003290| 61 79 2d 74 69 6d 65 2d | 74 69 6d 65 72 2d 66 75 |ay-time-|timer-fu|
|000032a0| 6e 63 74 69 6f 6e 20 73 | 74 72 69 6e 67 2d 6d 61 |nction s|tring-ma|
|000032b0| 74 63 68 20 22 31 38 5c | 5c 2e 35 5b 30 2d 35 5d |tch "18\|\.5[0-5]|
|000032c0| 22 20 65 6d 61 63 73 2d | 76 65 72 73 69 6f 6e 20 |" emacs-|version |
|000032d0| 64 69 73 70 6c 61 79 2d | 74 69 6d 65 2d 66 75 6e |display-|time-fun|
|000032e0| 63 74 69 6f 6e 20 64 69 | 73 70 6c 61 79 2d 74 69 |ction di|splay-ti|
|000032f0| 6d 65 2d 66 69 6c 74 65 | 72 20 6f 6c 64 2d 66 6e |me-filte|r old-fn|
|00003300| 20 6f 6c 64 2d 64 69 73 | 70 6c 61 79 2d 74 69 6d | old-dis|play-tim|
|00003310| 65 2d 66 69 6c 74 65 72 | 20 23 5b 28 26 72 65 73 |e-filter| #[(&res|
|00003320| 74 20 61 72 67 73 29 20 | 22 c0 c1 5c 6e 5c 22 88 |t args) |"..\n\".|
|00003330| c3 c4 21 87 22 20 5b 61 | 70 70 6c 79 20 6f 6c 64 |..!." [a|pply old|
|00003340| 2d 64 69 73 70 6c 61 79 | 2d 74 69 6d 65 2d 66 69 |-display|-time-fi|
|00003350| 6c 74 65 72 20 61 72 67 | 73 20 72 75 6e 2d 68 6f |lter arg|s run-ho|
|00003360| 6f 6b 73 20 64 69 73 70 | 6c 61 79 2d 74 69 6d 65 |oks disp|lay-time|
|00003370| 2d 68 6f 6f 6b 5d 20 33 | 20 22 52 65 76 69 73 65 |-hook] 3| "Revise|
|00003380| 64 20 76 65 72 73 69 6f | 6e 20 6f 66 20 74 68 65 |d versio|n of the|
|00003390| 20 6f 72 69 67 69 6e 61 | 6c 20 66 75 6e 63 74 69 | origina|l functi|
|000033a0| 6f 6e 3a 20 74 68 69 73 | 20 76 65 72 73 69 6f 6e |on: this| version|
|000033b0| 20 63 61 6c 6c 73 20 61 | 20 68 6f 6f 6b 2e 22 5d | calls a| hook."]|
|000033c0| 20 74 20 61 64 64 2d 68 | 6f 6f 6b 20 61 70 70 74 | t add-h|ook appt|
|000033d0| 2d 63 68 65 63 6b 5d 20 | 34 5d 29 0a 28 70 72 6f |-check] |4]).(pro|
|000033e0| 76 69 64 65 20 27 61 70 | 70 74 29 0a |vide 'ap|pt). |
+--------+-------------------------+-------------------------+--------+--------+